Skip to content

Commit d05f760

Browse files
更新配置
1 parent 6130bcf commit d05f760

File tree

4 files changed

+72
-2
lines changed

4 files changed

+72
-2
lines changed

ruoyi-admin/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,52 @@
6161
<artifactId>ruoyi-generator</artifactId>
6262
</dependency>
6363

64+
65+
<!-- Spring Boot Starter Web -->
66+
<dependency>
67+
<groupId>org.springframework.boot</groupId>
68+
<artifactId>spring-boot-starter-web</artifactId>
69+
</dependency>
70+
<!-- Spring Boot Starter Security -->
71+
<dependency>
72+
<groupId>org.springframework.boot</groupId>
73+
<artifactId>spring-boot-starter-security</artifactId>
74+
</dependency>
75+
76+
<dependency>
77+
<groupId>io.springboot.sms</groupId>
78+
<artifactId>aliyun-sms-spring-boot-starter</artifactId>
79+
<version>2.0.2</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>com.aliyun</groupId>
83+
<artifactId>aliyun-java-sdk-core</artifactId>
84+
<version>4.6.2</version>
85+
</dependency>
86+
87+
<dependency>
88+
<groupId>com.aliyun</groupId>
89+
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
90+
<version>2.2.1</version>
91+
</dependency>
92+
<!--mybatis plus extension,包含了mybatis plus core-->
93+
<dependency>
94+
<groupId>com.baomidou</groupId>
95+
<artifactId>mybatis-plus-extension</artifactId>
96+
<version>3.5.3.1</version>
97+
</dependency>
98+
<!--mybatis-->
99+
<dependency>
100+
<groupId>com.baomidou</groupId>
101+
<artifactId>mybatis-plus-boot-starter</artifactId>
102+
<version>3.5.3.1</version>
103+
</dependency>
104+
<dependency>
105+
<groupId>com.baomidou</groupId>
106+
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
107+
<version>3.5.2</version>
108+
</dependency>
109+
64110
</dependencies>
65111

66112
<build>

ruoyi-common/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
</description>
1717

1818
<dependencies>
19-
2019
<!-- Spring框架基本的核心工具 -->
2120
<dependency>
2221
<groupId>org.springframework</groupId>
@@ -125,6 +124,10 @@
125124
<groupId>javax.servlet</groupId>
126125
<artifactId>javax.servlet-api</artifactId>
127126
</dependency>
127+
<dependency>
128+
<groupId>org.projectlombok</groupId>
129+
<artifactId>lombok</artifactId>
130+
</dependency>
128131

129132
</dependencies>
130133

ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,24 @@ public class CacheConstants
4141
* 登录账户密码错误次数 redis key
4242
*/
4343
public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
44+
45+
//=============================================补充=======================================================
46+
47+
/**
48+
* 验证码前缀
49+
*/
50+
public static final String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY:";
51+
52+
/**
53+
* 验证码长度
54+
*/
55+
public static final String CODE_SIZE = "4";
56+
/**
57+
* 刷新
58+
*/
59+
public static final String REFRESH_TOKEN = "refresh_token";
60+
/**
61+
* 验证码有效期
62+
*/
63+
public static final int CODE_TIME = 60;
4464
}

ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception
111111
// 过滤请求
112112
.authorizeRequests()
113113
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
114-
.antMatchers("/login", "/register", "/captchaImage").permitAll()
114+
.antMatchers("/login", "/register", "/captchaImage","/api/mobile/{mobile}").permitAll()
115+
// .antMatchers("/login", "/register", "/captchaImage").permitAll()
115116
// 静态资源,可匿名访问
116117
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
117118
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()

0 commit comments

Comments
 (0)