| | |
| | | import cn.hutool.captcha.CircleCaptcha; |
| | | import cn.hutool.captcha.LineCaptcha; |
| | | import cn.hutool.captcha.ShearCaptcha; |
| | | import com.ruoyi.common.web.config.properties.CaptchaProperties; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Lazy; |
| | | |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @AutoConfiguration |
| | | @EnableConfigurationProperties(CaptchaProperties.class) |
| | | public class CaptchaConfig { |
| | | |
| | | private static final int WIDTH = 160; |