解决: 将elasticsearch的相关配置加入到application.yml配置文件中就可以解决 转载于:https://www.cnblogs.com/koudaiyoutang/p/11551311.html