摘要:
1.引入数据库依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <group 阅读全文
摘要:
1.创建验证码相关的异常类ValidateCodeException package com.mengxuegu.security.authentication.code; import org.springframework.security.core.AuthenticationExceptio 阅读全文
摘要:
1.导入依赖 <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> </dependency> 2.创建KaptchaImageCodeConfig package com.mengxu 阅读全文
摘要:
CustomAuthenticationSuccessHandler package com.mengxuegu.security.authentication; import com.mengxuegu.base.result.MengxueguResult; import com.mengxue 阅读全文
摘要:
自定义认证失败处理器 package com.mengxuegu.security.authentication; import com.mengxuegu.base.result.MengxueguResult; import org.springframework.http.HttpStatus 阅读全文