es创建bean一直出错的问题(Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true)

一直以为自己spring哪里配置出错了,查了很多资料都说@service注解每加入。后来发现是httpclient 和httpcore版本不对。改成比较新的版本就可以了。可能我用es7.6.1比较新所以要对应比较新的版本。

原文地址:https://www.cnblogs.com/yaohaitao/p/12643187.html