首页>代码>基于Spring Boot+Layui+mybatis开发垃圾分类管理系统>/garbage-collection-project/src/main/java/com/garbage/demo/conflg/KaptchaConfig.java
package com.garbage.demo.conflg; import com.google.code.kaptcha.impl.DefaultKaptcha; import com.google.code.kaptcha.util.Config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.Properties; /** *@description: 生成验证码配置 */ @Configuration public class KaptchaConfig { @Bean public DefaultKaptcha producer() { Properties properties = new Properties(); properties.put("kaptcha.border", "no"); properties.put("kaptcha.textproducer.font.color", "black"); properties.put("kaptcha.textproducer.char.space", "5"); Config config = new Config(properties); DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); defaultKaptcha.setConfig(config); return defaultKaptcha; } }
最近下载更多
yiipheartbeat LV2
4月19日
sun丶孙 LV8
4月6日
黎子寒 LV1
4月2日
zhb666 LV8
3月12日
duon12 LV1
2023年9月25日
mjh1142736 LV2
2023年9月18日
微信网友_6482083022819328 LV9
2023年6月24日
include LV8
2023年6月20日
VEVOPP LV2
2023年5月29日
lvdong2023 LV10
2023年5月17日
最近浏览更多
微信网友_6956978011000832 LV2
4月19日
yiipheartbeat LV2
4月19日
sun丶孙 LV8
4月6日
zolscy LV12
4月5日
玖零定制问题修复 LV34
4月4日
黎子寒 LV1
4月2日
微信网友_6927932988952576 LV12
3月29日
zhb666 LV8
3月12日
Nergard1
3月7日
暂无贡献等级
段贤锐 LV8
2月29日