摘要:
一、加入验证码依赖包 com.github.whvcse easy-captcha 1.6.2 二、实现验证码控制层 @GetMapping("/common/kaptcha") public void defaultKaptcha(HttpServletRequest httpServletReq 阅读全文
posted @ 2024-07-18 17:21
vello
阅读(124)
评论(0)
推荐(0)
摘要:
一、增加拦截器 @Component public class AdminLoginInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, H 阅读全文
posted @ 2024-07-18 15:29
vello
阅读(186)
评论(0)
推荐(0)
摘要:
一、添加mysql驱动 mysql mysql-connector-java 二、添加MyBatis依赖 org.mybatis.spring.boot mybatis-spring-boot-starter 3.0.1 三、添加配置 spring: datasource: name: xx-dat 阅读全文
posted @ 2024-07-18 14:16
vello
阅读(413)
评论(0)
推荐(0)
摘要:
以下是一个简单的Spring Boot整合Thymeleaf的入门案例: 1.创建一个Spring Boot项目,并添加Thymeleaf依赖。 org.springframework.boot spring-boot-starter-thymeleaf org.springframework.bo 阅读全文
posted @ 2024-07-18 10:43
vello
阅读(127)
评论(0)
推荐(0)

浙公网安备 33010602011771号