Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
d18a3781
Commit
d18a3781
authored
Sep 05, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES链接设置最小空闲时间
parent
6d38479f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
ch-core/src/main/java/com/wwdz/ch/core/config/ElasticSearchConfig.java
...ain/java/com/wwdz/ch/core/config/ElasticSearchConfig.java
+2
-1
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
+0
-2
No files found.
ch-core/src/main/java/com/wwdz/ch/core/config/ElasticSearchConfig.java
View file @
d18a3781
...
@@ -108,7 +108,8 @@ public class ElasticSearchConfig {
...
@@ -108,7 +108,8 @@ public class ElasticSearchConfig {
HttpClientConfigCallback
callback
=
httpAsyncClientBuilder
->
httpAsyncClientBuilder
HttpClientConfigCallback
callback
=
httpAsyncClientBuilder
->
httpAsyncClientBuilder
.
setSSLContext
(
buildSSLContext
())
.
setSSLContext
(
buildSSLContext
())
.
setSSLHostnameVerifier
(
NoopHostnameVerifier
.
INSTANCE
)
.
setSSLHostnameVerifier
(
NoopHostnameVerifier
.
INSTANCE
)
.
setDefaultCredentialsProvider
(
credentialsProvider
);
.
setDefaultCredentialsProvider
(
credentialsProvider
)
.
setKeepAliveStrategy
((
response
,
context
)
->
180
*
1000
);
// 用builder创建RestClient对象
// 用builder创建RestClient对象
RestClient
client
=
RestClient
RestClient
client
=
RestClient
...
...
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
View file @
d18a3781
...
@@ -42,8 +42,6 @@ public class ItemEsDao {
...
@@ -42,8 +42,6 @@ public class ItemEsDao {
//来源中国,排除2,7,尚未去除水印的
//来源中国,排除2,7,尚未去除水印的
private
final
static
List
<
String
>
SOURCE_LIST
=
Arrays
.
asList
(
"1"
,
"3"
,
"8"
,
"11"
,
"1000"
);
private
final
static
List
<
String
>
SOURCE_LIST
=
Arrays
.
asList
(
"1"
,
"3"
,
"8"
,
"11"
,
"1000"
);
@Resource
(
name
=
"clientByPasswd"
)
@Resource
(
name
=
"clientByPasswd"
)
ElasticsearchClient
elasticsearchClient
;
ElasticsearchClient
elasticsearchClient
;
...
...
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