No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail

简介: No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail

1.报错如下:
还是因为找不到配置的bean,要手动去配置一个config类去说明

@Configuration
public class FeignConfig {
    @Bean
    @ConditionalOnMissingBean
    public HttpMessageConverters messageConverters(ObjectProvider<HttpMessageConverter<?>> converters) {
        return new HttpMessageConverters(converters.orderedStream().collect(Collectors.toList()));
    }
}


目录
打赏
0
0
1
0
8
分享
相关文章
|
10月前
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
1031 0
|
10月前
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
330 0
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
504 0
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
The type org.apache.http.NameValuePair cannot be resolved. It is indirectly referenced from requi...
eclipse莫名其妙的bug 解决方案如下,把编译的android版本调低就可以了 调低编译版本
1656 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head><meta http-equiv="Cont
我们以前使用过的对hbase和hdfs进行健康检查,及剩余hdfs容量告警,简单易用 1.针对hadoop2的脚本: #/bin/bashbin=`dirname $0`bin=`cd $bin;pwd`STATE_OK=...
1074 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head><meta http-equiv="Cont
在运行一个group by的sql时,抛出以下错误信息: Task with the most failures(4):  -----Task ID:  task_201411191723_723592_m_000004URL:  http://DDS0204.
1007 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head><meta http-equiv="Cont
ZooKeeper 保证了数据的强一致性,  zk集群中任意节点(一个zkServer)上的相同znode下的数据一定是相同的。
823 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等