shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.iplatform.base.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
/**
 * 验证码配置相关参数。
 * @author 时克英
 * @date 2023-01-27
 */
@ConfigurationProperties(prefix = "iplatform.captcha")
public class CaptchaProperties {
 
    /**
     * 图像验证码实现类对象,如: com.walker.support.kaptcha.SimpleKaptchaProvider
     * @return
     */
    public String getImageCaptchaClass() {
        return imageCaptchaClass;
    }
 
    public void setImageCaptchaClass(String imageCaptchaClass) {
        this.imageCaptchaClass = imageCaptchaClass;
    }
 
    /**
     * 短信验证码提供者实现类对象
     * @return
     */
    @Deprecated
    public String getSmsCaptchaClass() {
        return smsCaptchaClass;
    }
 
    public void setSmsCaptchaClass(String smsCaptchaClass) {
        this.smsCaptchaClass = smsCaptchaClass;
    }
 
    private String imageCaptchaClass;
 
    @Deprecated
    private String smsCaptchaClass;
}