SpringCloud 常见Exception
米兰的小铁匠nie
热爱生活的java攻城狮
展开
-
Cannot construct instance of `cn.pcbaby.nbbaby.common.rest.PagerResult` (no Creators, like default天坑
前提利用fegin远程调用微服务异常信息Cannot construct instance of cn.pcbaby.nbbaby.common.rest.PagerResult (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (PushbackInputStream); .原创 2021-09-04 14:15:10 · 164 阅读 · 0 评论 -
feign.codec.EncodeException: Type definition error: [simple type, class java.util.Collections$3];天坑
前提:最近在对接公司的feign调用,涉及到两个业务系统之间的相互调用,而我在处理过程中遇到了以下错误,所有就拿出来记录一下错误提示feign.codec.EncodeException: Type definition error: [simple type, class java.util.Collections$3]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No s.原创 2021-09-04 12:54:55 · 2257 阅读 · 2 评论 -
Load balancer does not have available server for client
com.netflix.client.ClientException: Load balancer does not have available server for client: *****在使用openfeign作为负载客户端调用时,抛出异常:解决办法:在使用openfeign作为负载客户端调用时,抛出异常:解决办法:在application.yml配置文件中添加ribbon: eureka: enabled: true...原创 2021-04-05 16:07:22 · 1391 阅读 · 0 评论