canna-cloud【二十二】spring cloud 2020.0.0-M2 gateway RelProvider must not be null!

環境: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)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章