diff --git a/user/src/main/java/com/weather/controller/WeatherController.java b/user/src/main/java/com/weather/controller/WeatherController.java index 9d9852e..f9a997e 100644 --- a/user/src/main/java/com/weather/controller/WeatherController.java +++ b/user/src/main/java/com/weather/controller/WeatherController.java @@ -1,10 +1,12 @@ package com.weather.controller; +import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class WeatherController { + @PreAuthorize("permitAll()") @GetMapping("/test") public String test() { return "test!!";