Commit 69fb261c authored by Quxl's avatar Quxl

x

parent 60f3c0d6
......@@ -34,7 +34,6 @@
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>4.0.4.RELEASE</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
......@@ -102,7 +101,6 @@
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>6.0.1</version>
</dependency>
</dependencies>
<build>
......
package com.egolm.shop.config;
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.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
......@@ -14,7 +15,8 @@ public class SolrConfig {
@Bean
public HttpSolrClient httpSolrClient() {
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