Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
71889570
Commit
71889570
authored
Mar 15, 2022
by
yqwoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: sa-token redis 持久化
parent
9b8c5882
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
1 deletion
+45
-1
pom.xml
dlink-admin/pom.xml
+13
-0
application.yml
dlink-admin/src/main/resources/application.yml
+19
-1
pom.xml
pom.xml
+13
-0
No files found.
dlink-admin/pom.xml
View file @
71889570
...
@@ -105,6 +105,19 @@
...
@@ -105,6 +105,19 @@
<groupId>
cn.dev33
</groupId>
<groupId>
cn.dev33
</groupId>
<artifactId>
sa-token-spring-boot-starter
</artifactId>
<artifactId>
sa-token-spring-boot-starter
</artifactId>
</dependency>
</dependency>
<!-- sa-token 持久化 -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>cn.dev33</groupId>-->
<!-- <artifactId>sa-token-dao-redis-jackson</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>redis.clients</groupId>-->
<!-- <artifactId>jedis</artifactId>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<artifactId>
commons-lang3
</artifactId>
...
...
dlink-admin/src/main/resources/application.yml
View file @
71889570
...
@@ -11,7 +11,25 @@ spring:
...
@@ -11,7 +11,25 @@ spring:
# clean-disabled: true
# clean-disabled: true
## baseline-on-migrate: true
## baseline-on-migrate: true
# table: dlink_schema_history
# table: dlink_schema_history
# Redis配置
#sa-token如需依赖redis,请打开redis配置和pom.xml、dlink-admin/pom.xml中依赖
# redis:
# host: localhost
# port: 6379
# password:
# database: 10
# jedis:
# pool:
# # 连接池最大连接数(使用负值表示没有限制)
# max-active: 50
# # 连接池最大阻塞等待时间(使用负值表示没有限制)
# max-wait: 3000
# # 连接池中的最大空闲连接数
# max-idle: 20
# # 连接池中的最小空闲连接数
# min-idle: 5
# # 连接超时时间(毫秒)
# timeout: 5000
server
:
server
:
port
:
8888
port
:
8888
...
...
pom.xml
View file @
71889570
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
<!-- `provided` for product environment ,`compile` for dev environment -->
<!-- `provided` for product environment ,`compile` for dev environment -->
<scope.runtime>
provided
</scope.runtime>
<scope.runtime>
provided
</scope.runtime>
<scala.binary.version>
2.11
</scala.binary.version>
<scala.binary.version>
2.11
</scala.binary.version>
<jedis.version>
2.9.0
</jedis.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -157,6 +158,18 @@
...
@@ -157,6 +158,18 @@
<artifactId>
sa-token-spring-boot-starter
</artifactId>
<artifactId>
sa-token-spring-boot-starter
</artifactId>
<version>
${sa-token.version}
</version>
<version>
${sa-token.version}
</version>
</dependency>
</dependency>
<!--sa-token redis持久化 start-->
<dependency>
<groupId>
cn.dev33
</groupId>
<artifactId>
sa-token-dao-redis-jackson
</artifactId>
<version>
${sa-token.version}
</version>
</dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<version>
${jedis.version}
</version>
</dependency>
<!--sa-token redis持久化 end-->
<dependency>
<dependency>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<artifactId>
dlink-core
</artifactId>
<artifactId>
dlink-core
</artifactId>
...
...
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