@ConfigurationProperties(prefix="yishuifengxiao.code") public class CodeProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeProperties.EmailCodeProperties
邮件验证码相关的配置
|
static class |
CodeProperties.ImageCodeProperties
图形验证码的参数配置
|
static class |
CodeProperties.SmsCodeProperties
短信验证码的配置参数
|
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
deleteOnSuccess
是否在验证成功后删除验证过的验证码
|
protected CodeProperties.EmailCodeProperties |
email
邮箱验证码的相关配置
|
protected Boolean |
enable
是否开启验证码功能,默认为关闭
|
protected CodeProperties.ImageCodeProperties |
image
图形验证码相关的配置
|
protected String |
prefix
将验证码存储到Redis时的key的前缀,默认值为 validate_code_
|
protected CodeProperties.SmsCodeProperties |
sms
短信验证码相关的配置
|
| Constructor and Description |
|---|
CodeProperties() |
protected Boolean enable
protected String prefix
protected Boolean deleteOnSuccess
protected CodeProperties.ImageCodeProperties image
protected CodeProperties.SmsCodeProperties sms
protected CodeProperties.EmailCodeProperties email
Copyright © 2021. All rights reserved.