文件名从 ruoyi-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java 修改 |
| | |
| | | package com.ruoyi.framework.config; |
| | | package com.ruoyi.common.web.config; |
| | | |
| | | import cn.hutool.captcha.CaptchaUtil; |
| | | import cn.hutool.captcha.CircleCaptcha; |
| | | import cn.hutool.captcha.LineCaptcha; |
| | | import cn.hutool.captcha.ShearCaptcha; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.context.annotation.Lazy; |
| | | |
| | | import java.awt.*; |
| | |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | @Configuration |
| | | @AutoConfiguration |
| | | public class CaptchaConfig { |
| | | |
| | | private static final int WIDTH = 160; |