Spring安全管理网关和angularjs例外



我在spring安全中使用基于网关的身份验证。从数据库对用户进行身份验证。通过zuul,经过身份验证的用户被定向到UI微服务。当路由到UI微服务时,在管理网关服务上成功地对用户进行身份验证,会给出以下异常。

There was an unexpected error (type=Internal Server Error, status=500).
Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is org.springframework.core.NestedIOException: Failed to deserialize object type; nested exception is java.lang.ClassNotFoundException: mysecurity.CustomUserDetails

看看你的异常:java.lang.ClassNotFoundException: mysecurity.CustomUserDetails

确保你的类路径中有mysecurity.CustomUserDetails

最新更新