0
我在春季安全中使用基於網關的身份驗證。用戶通過數據庫進行身份驗證。通過zuul,經過身份驗證的用戶被定向到UI微服務。 A在路由到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
三江源maciek你讓我的代碼工作。 –