2014-10-10 86 views
0

我可以運行我的應用程序,並在所有有沒有問題,但是當我加入Maven的solrj問題

<dependency>  
      <groupId>org.springframework.data</groupId> 
      <artifactId>spring-data-solr</artifactId> 
      <version>1.1.0.RELEASE</version> 
</dependency> 

到我的POM文件,它拋出:

15:59:18,172 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-3) Context initialization failed: java.lang.IllegalStateException: Cannot load configuration class: eu.combc.webuzu.configuration.SecurityConfig 

任何想法,這是怎麼回事?

+0

你可以嘗試最新版本1.3.0.RELEASE? – Mysterion 2014-10-11 15:41:41

+0

檢查了所有版本,仍然得到相同的錯誤 – user4129715 2014-10-13 06:37:33

+0

eu.combc.webuzu.configuration.SecurityConfig它是你的類嗎?你能用春天的語境更新你的問題嗎? – Mysterion 2014-10-13 07:24:41

回答

0

檢查與此:

<dependency> 
    <groupId>org.apache.solr</groupId> 
    <artifactId>solr-solrj</artifactId> 
    <version>4.10.1</version> 
</dependency> 
+1

嗯,它不一樣:) – user4129715 2014-10-10 14:38:21