Installation(installation complete)

  本篇文章为你整理了Installation(installation complete)的详细内容,包含有installations installation complete installation failed installation中文翻译 Installation,希望能帮助你了解 Installation。

  IMPORTANT: No additional bug fixes or documentation updates

  will be released for this version. For the latest information, see the

  current release documentation.

  
Releases are hosted on

  Maven Central. If you

  are looking for a SNAPSHOT version, the Elastic Maven Snapshot repository is

  available at https://snapshots.elastic.co/maven/.

  Installation in a Gradle project by using Jacksonedit

  

dependencies {

 

   implementation co.elastic.clients:elasticsearch-java:8.0.1

   implementation com.fasterxml.jackson.core:jackson-databind:2.12.3

   // Needed only if you use the spring-dependency-management

   // and spring-boot Gradle plugins

   implementation jakarta.json:jakarta.json-api:2.0.1

  }

 

  
Installation in a Maven project by using Jacksonedit

  In the pom.xml of your project, add the following repository definition and

  dependencies:

  

 project 

 

   dependencies

   dependency

   groupId co.elastic.clients /groupId

   artifactId elasticsearch-java /artifactId

   version 8.0.1 /version

   /dependency

   dependency

   groupId com.fasterxml.jackson.core /groupId

   artifactId jackson-databind /artifactId

   version 2.12.3 /version

   /dependency

   !-- Needed only if you use the spring-boot Maven plugin --

   dependency

   groupId jakarta.json /groupId

   artifactId jakarta.json-api /artifactId

   version 2.0.1 /version

   /dependency

   /dependencies

   /project

 

  
Spring Boot and jakarta.jsonedit

  Spring Boot comes with Gradle and Maven plugins to ease development and dependency management. These plugins define built-in versions for a number of well-known libraries.

  One these libraries is jakarta.json:json-api that defines the standard Java JSON API. In version 1.x this library used the javax.json package, while in version 2.x it uses the jakarta.json package after the transition from JavaEE to JakartaEE.

  The Java API Client depends on version 2.0.1 of this library, in order to use the newer and future-proof jakarta.json package. But Spring Boot s Gradle plugin (at least in version 2.6 and below) overrides the Java API Client s dependency to use version 1.1.6 in the older javax.json namespace.

  This is why you have to explicitly add the jakarta.json:jakarta.json-api:2.0.1 dependency. Otherwise, this will result in the following exception at runtime: java.lang.ClassNotFoundException: jakarta.json.spi.JsonProvider.

  If your application also requires javax.json you can add the javax.json:javax.json-api:1.1.4 dependency, which is equivalent to jakarta.json:jakarta.json-api:1.1.6.

  以上就是Installation(installation complete)的详细内容,想要了解更多 Installation的内容,请持续关注盛行IT软件开发工作室。

郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。

留言与评论(共有 条评论)
   
验证码: