摘要: 1.引入数据库依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <group 阅读全文
posted @ 2020-11-07 22:55 xl4ng 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.创建验证码相关的异常类ValidateCodeException package com.mengxuegu.security.authentication.code; import org.springframework.security.core.AuthenticationExceptio 阅读全文
posted @ 2020-11-07 21:34 xl4ng 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> </dependency> 2.创建KaptchaImageCodeConfig package com.mengxu 阅读全文
posted @ 2020-11-07 21:24 xl4ng 阅读(195) 评论(0) 推荐(0) 编辑
摘要: CustomAuthenticationSuccessHandler package com.mengxuegu.security.authentication; import com.mengxuegu.base.result.MengxueguResult; import com.mengxue 阅读全文
posted @ 2020-11-07 19:35 xl4ng 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 自定义认证失败处理器 package com.mengxuegu.security.authentication; import com.mengxuegu.base.result.MengxueguResult; import org.springframework.http.HttpStatus 阅读全文
posted @ 2020-11-07 13:58 xl4ng 阅读(967) 评论(0) 推荐(0) 编辑