2020
10-08
10-08
Spring boot如何集成kaptcha并生成验证码
kaptcha是一个开源的验证码实现库1.添加依赖<dependency><groupId>com.github.axet</groupId><artifactId>kaptcha</artifactId><version>0.0.9</version></dependency>2.添加配置类配置验证码的生成属性packagecom.dream.road.config;importcom.google.code.kaptcha.impl.DefaultKaptcha;importcom.google.code.kaptcha.util.Config;importorg.springframework.context.annotation.Bean;importorg.springframework.cont...
继续阅读 >