首页 文章

Spring http API返回错误500但在控制台中未记录错误

提问于
浏览
0

我有一个spring boot应用程序,(spring 5.0.7.Release,spring boot version 2.0.3) .

我尝试从我的角度4应用程序登录,我得到一个错误500

{"timestamp":"2018-07-13","status":500,"error":"Internal Server Error","message":"org.springframework.session.MapSession.getCreationTime()Ljava/time/Instant;","path":"/security/signIn/password"}

但是在eclipse中,我的控制台只显示了这个

2018-07-13 12:11:59.243 DEBUG 64187 --- [nio-9000-exec-2] fpacCustomBasicAuthenticationFilter:认证成功:org.springframework.security.authentication.UsernamePasswordAuthenticationToken@aa6b860d:校长:fr.pangeeconseil.purchase .core.domain.security.AuthenticatedUserDTO @ 75136264;证书:[受保护];认证:真实;详细信息:org.springframework.security.web.authentication.WebAuthenticationDetails@b364:RemoteIpAddress:0:0:0:0:0:0:0:1; SessionId:null;授权机构:SUPER_ADMINISTRATOR 2018-07-13 12:11:59.306 DEBUG 64187 --- [nio-9000-exec-2] osweb.servlet.DispatcherServlet:名为'dispatcherServlet'的DispatcherServlet处理[/ error]的POST请求2018 -07-13 12:11:59.311 DEBUG 64187 --- [nio-9000-exec-2] swsmmaRequestMappingHandlerMapping:查找路径/错误的处理程序方法2018-07-13 12:11:59.313 DEBUG 64187 --- [ nio-9000-exec-2] swsmmaRequestMappingHandlerMapping:返回处理程序方法[public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) ] 2018-07-13 12:11:59.314 DEBUG 64187 --- [nio-9000-exec-2] fpacweb.CustomWebContentInterceptor:查找[/ error]的缓存秒数2018-07-13 12:11:59.314 DEBUG 64187 --- [nio-9000-exec-2] fpacweb.CustomWebContentInterceptor:将默认缓存秒数应用于[/ error] 2018-07-13 12:11:59.402 DEBUG 64187 --- [nio-9000-exec-2 ] oswsmmaHttpEntityMethodProcessor:已写入[{timestamp = Fri Jul 13 12:11:59 CEST 2018,status = 500,error = Internal Server Error,message = org.springframework.session.MapSession.getCreationTime()Ljava / time / Instant;,path = / security / signIn / password}]使用[org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@305deb42]作为“application / json”2018-07-13 12:11:59.403 DEBUG 64187 --- [nio-9000 -exec-2] osweb.servlet.DispatcherServlet:Null ModelAndView返回DispatcherServlet,名称为“dispatcherServlet”:假设HandlerAdapter完成了请求处理2018-07-13 12:11:59.404 DEBUG 64187 --- [nio-9000-exec- 2] osweb.servlet.DispatcherServlet:成功完成请求

重要信息:

  • 我们在gradle.build中使用带有以下引用的redis会话

编译'org.springframework.data:spring-data-redis:2.0.8.RELEASE'

编译“org.springframework.session:spring-session:1.3.3.RELEASE”

编译“org.springframework.session:spring-session-core:2.0.0.RELEASE”

编译“org.springframework.session:spring-session-data-redis:2.0.4.RELEASE”

我是 Spring 季/ Spring 季靴子的初学者,所以它可能很明显但我在网上找不到任何东西 .

1 回答

  • 0

    我想通了:spring-session已经过时了,我需要删除它,并在securityConfiguration中更改一些内容,因为某些类被删除/重命名 .

相关问题