Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
69fb261c
Commit
69fb261c
authored
Aug 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
60f3c0d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pom.xml
pom.xml
+0
-2
SolrConfig.java
src/main/java/com/egolm/shop/config/SolrConfig.java
+3
-1
No files found.
pom.xml
View file @
69fb261c
...
@@ -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>
...
...
src/main/java/com/egolm/shop/config/SolrConfig.java
View file @
69fb261c
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);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment