springboot整合elasticsearch中的版本问题对照
需要下载和springboot-data-elasticsearch中的版本相对应的版本
https://docs.spring.io/spring-data/elasticsearch/docs/3.2.5.RELEASE/reference/html/#reference
如果还是报错那么在启动类中加上一句
@SpringBootApplication
public class Demo0Application{
public static void main(String[] args)
{
System.setProperty("es.set.netty.runtime.available.processors", "false");
SpringApplication.run(Demo0Application.class, args);
}
}