Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kyb-search
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
万建斌
kyb-search
Commits
10cc0228
Commit
10cc0228
authored
Sep 02, 2019
by
chuwanshun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加es查询接口
parent
3ba9ae9b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
13 deletions
+35
-13
kyb-search.db
kyb-search.db
+0
-0
pom.xml
pom.xml
+15
-8
RSAEncryptUtil.java
src/main/java/com/cesgroup/common/utils/RSAEncryptUtil.java
+3
-3
TokenController.java
src/main/java/com/cesgroup/kingkong/web/TokenController.java
+2
-2
application-dev.yml
src/main/resources/application-dev.yml
+15
-0
No files found.
kyb-search.db
View file @
10cc0228
No preview for this file type
pom.xml
View file @
10cc0228
...
...
@@ -10,11 +10,7 @@
<groupId>
com.cesgroup
</groupId>
<artifactId>
kyb-search
</artifactId>
<version>
1.0.0
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
...
...
@@ -105,7 +101,21 @@
<version>
0.10.5
</version>
<scope>
runtime
</scope>
</dependency>
<!-- es依赖 -->
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.54
</version>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpcore
</artifactId>
</dependency>
</dependencies>
...
...
@@ -130,7 +140,5 @@
</plugins>
</build>
</project>
\ No newline at end of file
src/main/java/com/cesgroup/common/utils/RSAEncryptUtil.java
View file @
10cc0228
...
...
@@ -50,9 +50,9 @@ public class RSAEncryptUtil {
* 拼接待签名字符串 RSA2对应的函数
*/
Map
map
=
new
HashMap
();
map
.
put
(
"
loginName"
,
"superadmin
"
);
map
.
put
(
"
password"
,
"password123
"
);
map
.
put
(
"
flag"
,
"0
"
);
map
.
put
(
"
index"
,
"testhbase1
"
);
map
.
put
(
"
type"
,
"first1
"
);
map
.
put
(
"
id"
,
"3
"
);
String
content
=
AlipaySignature
.
getSignCheckContentV2
(
map
);
// String content = JSON.toJSONString(map);
...
...
src/main/java/com/cesgroup/kingkong/web/TokenController.java
View file @
10cc0228
...
...
@@ -9,9 +9,9 @@ import com.cesgroup.kingkong.core.security.model.JwtUser;
import
com.cesgroup.kingkong.entity.IPCheckEntity
;
import
com.cesgroup.kingkong.interceptor.RequiredPermission
;
import
com.cesgroup.kingkong.service.IPCheckService
;
import
com.cesgroup.kingkong.web.bind.annotation.KingkongRestController
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Date
;
...
...
@@ -22,7 +22,7 @@ import java.util.Date;
* @author: Wanjianbin
* @create: 2019-08-27 15:32
**/
@
Kingkong
RestController
@RestController
@RequestMapping
(
"/token"
)
public
class
TokenController
extends
BaseServiceController
<
IPCheckEntity
,
IPCheckService
>
{
...
...
src/main/resources/application-dev.yml
View file @
10cc0228
...
...
@@ -8,3 +8,17 @@ spring:
minIdle
:
5
maxActive
:
20
type
:
com.alibaba.druid.pool.DruidDataSource
elasticsearch
:
HostAddress
:
http://180.168.156.212:30020
#HostAddress: http://172.16.60.3:32738
http
:
maxTotal
:
100
defaultMaxPerRoute
:
20
connectTimeout
:
1000
connectionRequestTimeout
:
500
socketTimeout
:
10000
staleConnectionCheckEnabled
:
true
validateAfterInactivity
:
1000
waitTime
:
30000
idleConTime
:
3
retryCount
:
3
\ No newline at end of file
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