com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.lxw

使用Feign是出现的问题 SpringCloud对Feign进行了增强兼容了SpringMVC的注解 ,我们在使用SpringMVC的注解时需要注意: 1、feignClient接口 有参数在参数必须加@PathVariable(“XXX”)和@RequestParam(“XXX”) 2、feignClient返回值为复杂对象时其类型必须有无参构造函数。 按住ctrl点击打开 返回值类型 类。
相关文章
相关标签/搜索