IDEA 报错Error creating bean with name ‘elasticsearchClient’,
问题描述:
由于IDEA需要elasticsearch的版本为6.8.7,于是就安装了6.8.7版本的elasticsearch,结果报错(可以先查看自己安装的版本是否与IDEA中一致)。

解决方案:
在你使用到elasticsearch的微服务的启动类中进行system.setProperty配置:
@SpringBootApplication
@MapperScan(basePackages = "com.imooc.article.mapper")
@ComponentScan(
2574



被折叠的 条评论
为什么被折叠?



