spring security admin gateway和angularjs exception

时间:2016-08-22 09:11:06

标签: angularjs spring security netflix-zuul api-gateway

我在spring security中使用基于网关的身份验证。用户通过数据库进行身份验证。通过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

1 个答案:

答案 0 :(得分:0)

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

请确保您的类路径中有mysecurity.CustomUserDetails个课程