环境:spring cloud 2020.0.0-M2
spring boot 2.3.0.release
问题描述:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'halJacksonHttpMessageConverter' defined in class path resource [org/springframework/cloud/openfeign/hateoas/FeignHalAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter]: Factory method 'halJacksonHttpMessageConverter' threw exception; nested exception is java.lang.IllegalArgumentException: RelProvider must not be null!
在application启动类添加如下注解
@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)