两个项目远程调用时发生问题,一直找不到原因,报错代码行如下:
java.lang.ClassCastException: java.lang.String cannot be cast to java.time.Instant
at org.springframework.security.oauth2.server.resource.authentication.OpaqueTokenReactiveAuthenticationManager.lambda$authenticate$0(OpaqueTokenReactiveAuthenticationManager.java:89)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ org.springframework.security.web.server.authentication.AuthenticationWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.security.web.server.context.ReactorContextWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.security.web.server.header.HttpHeaderWriterWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.security.config.web.server.ServerHttpSecurity$ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
|_ checkpoint ⇢ net.cqnews.captcha.CaptchaGatewayFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ net.cqnews.gateway.CORSFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ HTTP POST "/" [ExceptionHandlingWebHandler]
principal: