2016-08-22 15 views
0

私は春のセキュリティでゲートウェイベースの認証を使用しています。ユーザーはデータベースから認証されます。 zuulを介して、認証されたユーザはUIマイクロサービスに導かれる。 UIマイクロサービスにルーティングされたときに、管理ゲートウェイサービスでユーザーが正常に認証されると、次の例外が発生します。あなたの例外でスプリングセキュリティ管理ゲートウェイとangularjs例外

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 

答えて

0

ルック: java.lang.ClassNotFoundException: mysecurity.CustomUserDetails

ちょうどあなたがあなたのクラスパス

+0

にあなたが私のコードの作品を​​作ったありがとうmaciekをmysecurity.CustomUserDetailsクラスを持っていることを確認してください。 –