| | |
| | | --- |
| | | server: |
| | | port: 8081 |
| | | --- |
| | | # 数据源配置 |
| | | spring: |
| | | datasource: |
| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true |
| | | username: root |
| | | password: root |
| | | url: jdbc:mysql://39.101.143.184:3306/ruoyi-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true |
| | | username: ruoyi-vue |
| | | password: ryvue |
| | | # 从库数据源 |
| | | slave: |
| | | # 从数据源开关/默认关闭 |
| | |
| | | # redis 配置 |
| | | redis: |
| | | # 地址 |
| | | host: localhost |
| | | host: 39.101.143.184 |
| | | # 端口,默认为6379 |
| | | port: 6379 |
| | | # 数据库索引 |
| | | database: 0 |
| | | # 密码 |
| | | password: |
| | | password: ryvue |
| | | # 连接超时时间 |
| | | timeout: 10s |
| | | lettuce: |
| | |
| | | # 连接池的最大数据库连接数 |
| | | max-active: 8 |
| | | # #连接池最大阻塞等待时间(使用负值表示没有限制) |
| | | max-wait: -1ms |
| | | max-wait: -1ms |
| | |
| | | @Component |
| | | @ConfigurationProperties(prefix = "captcha") |
| | | public class CaptchaProperties { |
| | | // 验证码类型 |
| | | |
| | | /** |
| | | * 验证码开关 |
| | | */ |
| | | private Boolean enabled; |
| | | |
| | | /** |
| | | * 验证码类型 |
| | | */ |
| | | private String type; |
| | | // 验证码类别 |
| | | |
| | | /** |
| | | * 验证码类别 |
| | | */ |
| | | private String category; |
| | | // 数字验证码位数 |
| | | |
| | | /** |
| | | * 数字验证码位数 |
| | | */ |
| | | private Integer numberLength; |
| | | // 字符验证码长度 |
| | | |
| | | /** |
| | | * 字符验证码长度 |
| | | */ |
| | | private Integer charLength; |
| | | } |