From 0bbb8412676e6918a266127bd23861da60f8ebe0 Mon Sep 17 00:00:00 2001 From: HeeSung98 Date: Wed, 15 Nov 2023 10:13:15 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/weather/controller/WeatherController.java | 2 ++ 1 file changed, 2 insertions(+) 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!!";