add 增加验证码开关

feature/model
疯狂的狮子li 4 years ago
parent 5dc873209e
commit 2885ced2c7

@ -1,3 +1,7 @@
---
server:
port: 8081
---
# 数据源配置 # 数据源配置
spring: spring:
datasource: datasource:
@ -6,9 +10,9 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true url: jdbc:mysql://39.101.143.184:3306/ruoyi-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
username: root username: ruoyi-vue
password: root password: ryvue
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
@ -58,13 +62,13 @@ spring:
# redis 配置 # redis 配置
redis: redis:
# 地址 # 地址
host: localhost host: 39.101.143.184
# 端口默认为6379 # 端口默认为6379
port: 6379 port: 6379
# 数据库索引 # 数据库索引
database: 0 database: 0
# 密码 # 密码
password: password: ryvue
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
lettuce: lettuce:

@ -13,12 +13,29 @@ import org.springframework.stereotype.Component;
@Component @Component
@ConfigurationProperties(prefix = "captcha") @ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties { public class CaptchaProperties {
// 验证码类型
/**
*
*/
private Boolean enabled;
/**
*
*/
private String type; private String type;
// 验证码类别
/**
*
*/
private String category; private String category;
// 数字验证码位数
/**
*
*/
private Integer numberLength; private Integer numberLength;
// 字符验证码长度
/**
*
*/
private Integer charLength; private Integer charLength;
} }

Loading…
Cancel
Save