All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pongsky.kit.captcha.properties.KaptchaProperties Maven / Gradle / Ivy

There is a newer version: 4.1.3-2.4.13
Show newest version
package com.pongsky.kit.captcha.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 输入型算数 验证码 参数配置
 *
 * @author pengsenhao
 */
@Getter
@Setter
@ConfigurationProperties("kaptcha")
public class KaptchaProperties {

    /**
     * 最小验证码数值
     */
    private int minCode = 10;

    /**
     * 最大验证码数值
     */
    private int maxCode = 99;

    /**
     * 每个验证码宽度间距
     */
    private int codeWidthSpace = 25;

    /**
     * 图像高度
     */
    private int imageHeight = 35;

    /**
     * 干扰线数量
     */
    private int drawCount = 200;

    /**
     * 干扰线的长度 = 1.414 * LINE_WIDTH
     */
    private int lineWidth = 2;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy