shjung 2 年之前
父節點
當前提交
cddf1bb0bd

+ 1 - 1
src/main/java/com/its/op/controller/its/LoginController.java

@@ -148,7 +148,7 @@ public class LoginController {
     public ModelAndView getLogout(HttpServletRequest request, HttpServletResponse response) {
         return commonLogout(request, response);
     }
-    @PostMapping({"/post-logout.do"})
+    @PostMapping({"/logout.do"})
     public ModelAndView postLogout(HttpServletRequest request, HttpServletResponse response) {
         return commonLogout(request, response);
     }

+ 1 - 1
src/main/java/com/its/op/security/WebLoginService.java → src/main/java/com/its/op/security/UserDetailsServiceImpl.java

@@ -15,7 +15,7 @@ import java.util.Optional;
 @Slf4j
 @Service
 @RequiredArgsConstructor
-public class WebLoginService implements UserDetailsService {
+public class UserDetailsServiceImpl implements UserDetailsService {
 
     private final TbUserInfrRepository userRepo;
     private final TbUserCnncHsRepository cnncHsRepo;

+ 5 - 5
src/main/java/com/its/op/security/WebSecurityConfig.java

@@ -31,7 +31,7 @@ import java.util.Map;
 //@EnableGlobalMethodSecurity(securedEnabled = true)
 public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
 
-    private final WebLoginService loginService;
+    private final UserDetailsServiceImpl loginService;
     private final WebLoginSuccessHandler webLoginSuccessHandler;
     private final WebLoginFailureHandler webLoginFailureHandler;
 
@@ -48,10 +48,10 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
         web.ignoring().antMatchers(HttpMethod.POST, "/cs-api/**");  // GET Method 는 모두 통과
         web.ignoring().antMatchers(HttpMethod.PUT, "/cs-api/**");  // GET Method 는 모두 통과
         web.ignoring().antMatchers(HttpMethod.DELETE, "/cs-api/**");  // GET Method 는 모두 통과
-        web.ignoring().antMatchers(HttpMethod.GET, "/resource/**");  // GET Method 는 모두 통과
-        web.ignoring().antMatchers(HttpMethod.POST, "/resource/**");  // GET Method 는 모두 통과
-        web.ignoring().antMatchers(HttpMethod.PUT, "/resource/**");  // GET Method 는 모두 통과
-        web.ignoring().antMatchers(HttpMethod.DELETE, "/resource/**");  // GET Method 는 모두 통과
+        web.ignoring().antMatchers(HttpMethod.GET, "/api/resource/**");  // GET Method 는 모두 통과
+        web.ignoring().antMatchers(HttpMethod.POST, "/api/resource/**");  // GET Method 는 모두 통과
+        web.ignoring().antMatchers(HttpMethod.PUT, "/api/resource/**");  // GET Method 는 모두 통과
+        web.ignoring().antMatchers(HttpMethod.DELETE, "/api/resource/**");  // GET Method 는 모두 통과
     }
 
     //@Override