【问题标题】:spring security admin gateway and angularjs exceptionspring安全管理网关和angularjs异常
【发布时间】:2016-12-28 18:22:46
【问题描述】:

我在 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

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2022-11-28
      • 1970-01-01
      • 1970-01-01
      • 2019-12-28
      • 2015-09-13
      • 1970-01-01
      • 1970-01-01
      • 2015-03-05
      • 2016-11-15
      相关资源
      最近更新 更多