1. Java
pom.xml 中引入
拦截器中放行相关接口
增加 AjCaptchaController
增加 CaptchaCacheServiceRedisImpl
resource 下增加 CaptchaCacheServiceRedisImpl 路径
2. Vue
增加 Verify 组件
Commented [A1]: <!-- captcha 滑动验证码-->
<dependency>
<groupId>com.anji-plus</groupId>
<artifactId>spring-boot-starter-captcha</artifactId>
<version>1.3.0</version>
</dependency>
<!-- easy-captcha 图形验证码-->
<dependency>
<groupId>com.github.whvcse</groupId>
<artifactId>easy-captcha</artifactId>
<version>1.6.2</version>
</dependency>
Commented [A2]: /*
*Copyright © 2018 anji-plus
*安吉加加信息技术有限公司
*http://www.anji-plus.com
*All rights reserved.
*/
package com.goodsoft.shrk.operate.controller;
import
com.anji.captcha.model.common.ResponseModel;
import com.anji.captcha.model.vo.CaptchaVO;
import com.anji.captcha.service.CaptchaService;
import com.goodsoft.shrk.OperateWebApplication;
import
org.springframework.beans.factory.annotation.Aut
owired;
import
org.springframework.web.bind.annotation.PostMa
pping;
import
org.springframework.web.bind.annotation.Request
Body;
import
org.springframework.web.bind.annotation.Request
Mapping;
Commented [A3]: package
com.goodsoft.shrk.operate.service.impl;
import
com.anji.captcha.service.CaptchaCacheService;
import
com.goodsoft.shrk.component.cache.CommonCach
e;
import
org.springframework.beans.factory.annotation.Aut
owired;
Commented [A4]:
com.goodsoft.shrk.operate.service.impl.CaptchaCa
cheServiceRedisImpl