1. 程式人生 > >springboot 啟動的時候報錯 Error creating bean with name 'solrClient'

springboot 啟動的時候報錯 Error creating bean with name 'solrClient'

springboot 啟動的時候報錯:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrClient' defined in class path resource [org/springframework/boot/autoconfigure/solr/SolrAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.solr.client.solrj.SolrClient]: Factory method 'solrClient' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.solr.client.solrj.impl.HttpClientUtil.createClient(Lorg/apache/solr/common/params/SolrParams;)Lorg/apache/http/impl/client/CloseableHttpClient;

在spring boot 中新增  (exclude=SolrAutoConfiguration.class)

package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication(exclude=SolrAutoConfiguration.class)
public class Application extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }

相關推薦

springboot 啟動的時候 Error creating bean with name 'solrClient'

springboot 啟動的時候報錯: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrClient' defined in class path resource [o

spring boot 專案 redis啟動 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'

先說一下解決辦法 修改配置redis.conf檔案 C:\Users\coffee>C:\Java\Redis-x64-3.2.100\redis-server.exe redis.conf 把redis.conf的配置檔案的註釋改為 # not

ssm專案整合中遇到的tomcat啟動的時候Error creating bean with name 'xxxController'

今天學習整合ssm專案在測試框架是否可用時,一執行maven的tomcat就報上面的錯誤, 一開始還以為是service層註解沒有寫好,後面檢查發現沒有錯誤,最後是在web.xml檔案中發現下面的param-value寫錯了,applicationContext-*.xml

idea Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource

ror factory pojo mapped clas mes del strong per 核對一下控制器是不是寫了相同的路徑。。。org.springframework.beans.factory.BeanCreationException: Error crea

Spring注入bean Error creating bean with name的網上找不到的解決方案

                        今天在研究Bas

SpringCloud-Eureka Error creating bean with name解決

報錯:Error creating bean with name  解決辦法 在pom檔案中新增以下依賴 <!--Error creating bean with name 補丁依賴--> <dependency>

Spring boot 採用Cxf 整合WebService 執行Error creating bean with name 'endpoint' defined ”

Spring boot 採用Cxf 整合WebService 執行報錯“Error creating bean with name ‘endpoint’ defined ” 由於新專案的需要,專案框架採用Spring boot 1.5.13.RELEASE、j

SpringMVC查詢出現500,Error creating bean with name 'menuController': Injection of autowired dependency

解決方案:這是因為在service.impl包下的IEmpServiceImpl中沒有加@server,在控制層呼叫業務層,               &n

SSM使用高版本的spring(我用的5.0.8),Error creating bean with name 'requestMappingHandlerAdapter' defined in

Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/web/servlet/config/annota

PageHelperError creating bean with name sqlSessionFactory defined in class path resource

2017-08-17 21:20:16.618 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.springframework.web.context.ContextLoa

java-->Error creating bean with name 'org.springframework.web.servlet.resource.ResourceHttpRequest

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servl

Spring Aop error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator

使用Spring Aop程式設計除了要加入Spring的spring-aop jar包,還要加入aspectjrt.jar,aspectjweaver.jar,以及aopalliance_1.0.jar,否則報錯: org.springframework.beans.fac

spring boot maven install時報 Error creating bean with name 'serverEndpointExporter'。。。。。

 maven install時 自動啟動專案 並報錯:    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExpo

spring cloud 測試的時候 BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServic

因為都能正確的跑測試方法,所以我也不太注意它,但是有時候閒得蛋疼就會找一下原因。具體原因我也說不清,直接丟個連線https://github.com/spring-cloud/spring-cloud-netflix/issues/1952裡面的一位叫@Component p

啟動tomcat時候,Spring注入beanError creating bean with name

當遇到這種問題的時候,本能的反應就是是不是沒有掃描到該bean物件,該bean物件有沒有加註解。 而網上的普遍解決方案一般都是說spring配置檔案有問題,掃描不到該包;還有一些解決方案比較細節,不具有概括性,比如component元件的類用抽象類(眾所周知,抽象類無法例項

SpringBoot熱部署(BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher' d)

異常資訊如下 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher'

maven專案新增Gson的依賴後無法啟動BeanCreationException:Error creating bean with name 'gsonBuilder'

具體錯誤如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gsonBuilder' defined in class path

Spring Boot Error creating bean with name 'entityManagerFactory' defined in class path resource

fine 依賴 debug isp jpa java idt .com ima spring boot 寫一個web項目,在使用spring-data-jpa的時候,啟動報如下錯誤: Error starting ApplicationContext. To display

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [bean

報這種錯的原因基本上是applicationContext.xml檔案中bean配置錯誤,錯誤如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory'

用intellij idea練習spring專案時,aop程式設計Error creating bean with name '(inner bean)#3b0143d3' balbala之類的

程式設計環境,intellij idea 這個錯誤是因為沒有匯入Spring所依賴的AspectJ的jar包引起的,目前用到的,就是aspectjweaver.jar這個包, 最蛋痛的是spring官網下載的lib中並不提供這個依賴包,需要去AspectJ官網下載,連結如