Commit 69fb261c authored by Quxl's avatar Quxl

x

parent 60f3c0d6
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
<dependency> <dependency>
<groupId>org.springframework.security</groupId> <groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId> <artifactId>spring-security-core</artifactId>
<version>4.0.4.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
...@@ -102,7 +101,6 @@ ...@@ -102,7 +101,6 @@
<dependency> <dependency>
<groupId>org.apache.solr</groupId> <groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId> <artifactId>solr-solrj</artifactId>
<version>6.0.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
......
package com.egolm.shop.config; package com.egolm.shop.config;
import org.apache.solr.client.solrj.impl.HttpSolrClient; import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -14,7 +15,8 @@ public class SolrConfig { ...@@ -14,7 +15,8 @@ public class SolrConfig {
@Bean @Bean
public HttpSolrClient httpSolrClient() { public HttpSolrClient httpSolrClient() {
System.out.println(baseURL); System.out.println(baseURL);
return new HttpSolrClient(baseURL); return new Builder().withBaseSolrUrl(baseURL).build();
//return new HttpSolrClient(baseURL);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment