【发布时间】:2021-09-13 11:49:10
【问题描述】:
应用程序在本地机器上工作正常,但在服务器中面临自动会话超时。
DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository - No HttpSession currently exists
02:45:03.270 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: null. A new one will be created.
02:45:03.270 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter'
02:45:03.270 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
02:45:03.270 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 4 of 10 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'
02:45:03.270 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 5 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
02:45:03.271 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 6 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
02:45:03.271 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
02:45:03.271 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.authentication.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6faa3d44: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@ffff4c9c: RemoteIpAddress: 10.92.0.136; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
02:45:03.271 [http-nio-8080-exec-5] DEBUG org.springframework.security.web.FilterChainProxy - /web/filerequeststransactionses/?page=3&size=10 at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter'
【问题讨论】:
-
你也应该显示你的安全配置
标签: java spring spring-boot spring-mvc spring-security