org.elasticsearch.common.xcontent.DeprecationHandler
在读取es数据保存到json中并传到web页面时,spring项目报错:org.elasticsearch.common.xcontent.DeprecationHandler
表面上看貌似是elasticsearch包出问题了,于是到本地库删除了相关的包重新加载,然并软,最后发现是项目pom文件version错误
在2.x中有的spring-starter版本在启动spring项目时会莫名报错吗,后来我配置了1.5.10版本,问题陈功解决
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.10.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>