首页>代码>基于springboot2+mybatis+thymeleaf+layui整合开发的在线心理咨询管理系统>/YiXinLi-Project/src/main/java/com/pengzhen/yixinli/config/KaptchaConfig.java
package com.pengzhen.yixinli.config; import com.google.code.kaptcha.Producer; import com.google.code.kaptcha.util.Config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.Properties; /** * 验证码框架配置 */ @Configuration public class KaptchaConfig { @Bean public Producer KaptchaProducer() { Properties kaptchaProperties = new Properties(); kaptchaProperties.put("kaptcha.border", "no"); kaptchaProperties.put("kaptcha.textproducer.char.length", "4"); kaptchaProperties.put("kaptcha.textproducer.char.space", "6"); kaptchaProperties.put("kaptcha.image.height", "80"); // kaptchaProperties.put("kaptcha.image.width","125"); kaptchaProperties.put("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.WaterRipple"); kaptchaProperties.put("kaptcha.textproducer.font.color", "blue"); kaptchaProperties.put("kaptcha.textproducer.font.size", "60"); //kaptchaProperties.put("kaptcha.noise.impl","com.google.code.kaptcha.impl.NoNoise"); kaptchaProperties.put("kaptcha.noise.impl", "com.google.code.kaptcha.impl.DefaultNoise"); kaptchaProperties.put("kaptcha.textproducer.char.string", "123456789"); Config config = new Config(kaptchaProperties); return config.getProducerImpl(); } }

07311514 LV10
2月17日
李二san LV1
2024年4月13日
微信网友_6927932988952576 LV12
2024年3月31日
WHY-small LV15
2023年12月20日
wnnmmb LV2
2023年10月18日
爱吃鱼的猫Vital LV6
2023年7月28日
xiaobaitud LV13
2023年7月10日
微信网友_6461019441418240 LV2
2023年5月6日
夜晚的星666 LV7
2023年5月5日
18836428501 LV1
2023年3月3日

13752890376
9月22日
暂无贡献等级
暂无贡献等级
陈小灏 LV18
2月21日
07311514 LV10
2月17日
微信网友_7371218154688512 LV4
2月5日
54ty1212
1月6日
暂无贡献等级
2081aa
2024年6月13日
暂无贡献等级
TY0165 LV20
2024年5月28日
来一杯西瓜冰咩 LV6
2024年5月13日
dddddk
2024年4月23日
暂无贡献等级