基于SpringBoot的研究和分析图片验证码生成技术
发布时间
阅读量:
阅读量
目录
- 一、CaptchaUtil类的代码示例
- 二、CaptchaController类的代码示例
一、CaptchaUtil代码展示
package com.minster.yanapi.utils;
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;
@Configuration
public class CaptchaUtil{
@Bean
public DefaultKaptcha getDefaultKaptcha() {
DefaultKaptcha defaultKaptcha = new DefaultKaptch
全部评论 (0)
还没有任何评论哟~
