org.elasticsearch.common.xcontent.DeprecationHandler

在讀取es數據保存到json中並傳到web頁面時,spring項目報錯:org.elasticsearch.common.xcontent.DeprecationHandlerweb

表面上看貌似是elasticsearch包出問題了,因而到本地庫刪除了相關的包從新加載,然並軟,最後發現是項目pom文件version錯誤spring

在2.x中有的spring-starter版本在啓動spring項目時會莫名報錯嗎,後來我配置了1.5.10版本,問題陳功解決json

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.10.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
相關文章
相關標籤/搜索