NoClassDefFoundError is usually a configuration error – which means that the code you use refers to a class, but the class itself is not in the classpath. In this case, this may also be a dependency management error in the relevant elasticsearch POMS itself, because it should contain the required classes
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>7.6.2</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
<version>7.6.2</version>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>7.6.2</version>
</dependency>
Complete dependency, OK
(pay attention to switching to your own version)
maybe your mood is broken at the moment. Don’t worry. I believe it will bring you good luck _ sup>
Read More:
- Error in creating index by Google elasticsearch head plug-in
- Error creating bean with name ‘application‘: Instantiation of bean failed;
- Springboot error creating bean with name ‘xmlmodelplug’:
- Errors encountered by elasticsearch in creating index and mapping
- Elasticsearch startup process error: org.elasticsearch.transport .BindTransportException: Failed to bind to [9300-9400
- Error creating bean with name ‘redisTemplate‘ defined in class path resource [xx/RedisConfig.class]
- Error creating bean with name ‘redissonclient’:
- Error creating bean with name usercontroller appears when springboot starts
- Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’
- Error creating bean with name ‘helloController‘: Injection of autowired dependencies failed;
- Error creating bean with name ‘xxcontroller’
- Error creating bean with name ‘requestMappingHandlerAdapter‘ defined in class path resource
- Error creating bean with name xxxxxx : unsatisfied dependency…
- Spring configuration error: org.springframework.beans . factory.BeanCreationException : Error creating bean with name ‘m
- es Failed to introspect Class [org.elasticsearch.client.RestHighLevelClient] from ClassLoader
- Error creating bean with name ‘sqlsessionfactory’ defined in ServletContext resource)
- About error creating bean with name ‘xxxxx’: invocation of init method
- Error creating bean with name ‘datasource’ defined in class path resource
- Idea SpringBoot:Error creating bean with name ‘XXXXController‘
- Spring AOP is an error creating bean with name