Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
793f0151
Commit
793f0151
authored
Mar 12, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
634e3459
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
pom.xml
pom.xml
+11
-8
ShiroConfig.java
...n/java/cn/wisenergy/chnmuseum/party/conf/ShiroConfig.java
+0
-2
LoginController.java
...nergy/chnmuseum/party/web/controller/LoginController.java
+1
-1
No files found.
pom.xml
View file @
793f0151
...
...
@@ -6,6 +6,7 @@
<artifactId>
chnmuseum-party
</artifactId>
<version>
1.0.0
</version>
<packaging>
jar
</packaging>
<description>
中国国家博物馆建党百年展点播院线服务平台
</description>
<parent>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -40,6 +41,10 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<exclusions>
<exclusion>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</exclusion>
<exclusion>
<groupId>
io.lettuce
</groupId>
<artifactId>
lettuce-core
</artifactId>
...
...
@@ -54,13 +59,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-validation
</artifactId>
</dependency>
<!-- 配置项直接生成对象依赖 -->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>-->
<!-- MyBatis Starter -->
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
...
...
@@ -179,8 +177,13 @@
<dependency>
<groupId>
org.crazycake
</groupId>
<artifactId>
shiro-redis
</artifactId>
<version>
2.4.2.1-RELEASE
</version>
<version>
3.3.1
</version>
</dependency>
<!--<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.1</version>
</dependency>-->
<!-- Chinese ideograph To PinYin -->
<dependency>
<groupId>
com.github.stuxuhai
</groupId>
...
...
src/main/java/cn/wisenergy/chnmuseum/party/conf/ShiroConfig.java
View file @
793f0151
...
...
@@ -167,8 +167,6 @@ public class ShiroConfig {
public
RedisManager
redisManager
()
{
RedisManager
redisManager
=
new
RedisManager
();
redisManager
.
setHost
(
host
);
redisManager
.
setPort
(
port
);
redisManager
.
setExpire
(
14400
);
// 配置缓存过期时间
redisManager
.
setTimeout
(
timeout
);
redisManager
.
setPassword
(
password
);
return
redisManager
;
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/LoginController.java
View file @
793f0151
...
...
@@ -99,7 +99,7 @@ public class LoginController {
return
ResponseEntity
.
status
(
HttpStatus
.
BAD_REQUEST
).
body
(
resultMap
);
}
}
else
{
stringRedisTemplate
.
delete
(
captchaId
);
//
stringRedisTemplate.delete(captchaId);
resultMap
.
put
(
"status"
,
400
);
resultMap
.
put
(
"message"
,
"验证码获取失败!"
);
return
ResponseEntity
.
status
(
HttpStatus
.
BAD_REQUEST
).
body
(
resultMap
);
...
...
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