diff --git a/src/main/java/com/matdongsan/infra/SecurityConfig.java b/src/main/java/com/matdongsan/infra/SecurityConfig.java index 89040fd..550a265 100644 --- a/src/main/java/com/matdongsan/infra/SecurityConfig.java +++ b/src/main/java/com/matdongsan/infra/SecurityConfig.java @@ -24,7 +24,7 @@ protected void configure(HttpSecurity http) throws Exception { // 카카오 맵 외부 요청을 받 .csrf().disable() // /api/place 로 보내지지가 않아서 설정 .authorizeRequests() - .mvcMatchers("/login", "/signup", "/account/idCheck", "/account/kakao/**", "/", "/place", "/place/map", "/posts", "/post/**").permitAll() // 누구나 접근 가능 + .mvcMatchers("/login", "/signup", "/account/idCheck", "/account/kakao/**", "/", "/place", "/place/map", "/posts", "/post/*/detail").permitAll() // 누구나 접근 가능 .anyRequest().authenticated(); // 나머지 요청은 권한이 있어야함 http.logout() .logoutUrl("/logout") diff --git a/src/main/java/com/matdongsan/web/controller/post/PostController.java b/src/main/java/com/matdongsan/web/controller/post/PostController.java index 55ee533..c43b638 100644 --- a/src/main/java/com/matdongsan/web/controller/post/PostController.java +++ b/src/main/java/com/matdongsan/web/controller/post/PostController.java @@ -52,7 +52,7 @@ public class PostController { // 게시글 상세 조회 - @GetMapping("/post/{id}") + @GetMapping("/post/{id}/detail") public String showDetailPost(@PathVariable long id, @RequestParam(value = "page", defaultValue = "0") int page, Model model, @ModelAttribute("replyDto") ReplyDto replyDto, diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 0605bbf..28b463c 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -14,7 +14,7 @@
-맛! 동! 산! 맛 동도로동동동동 산~!
+맛동산 프로젝트 | Github
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 57007d2..b7a341a 100755 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -103,7 +103,7 @@