教程

springboot2.7整合redis

1.在springboot项目的pom.xml 文件里加入redis的jar依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-re...

mybatis-plus 表名添加前缀

1、使用mybatis-plus自身的查询构造去,只需要在全局配置中添加如下配置 mybatis-plus: mapper-locations: classpath:mappers/*Mapper.xml # mapper映射文件 global-config: db-config: table-prefix: tr_...

SpringBoot 拦截器授权登录

上一篇文章介绍了SpringBoot自定义注解实现Token校验,适用于在控制器有很少的方法需要拦截,如果是后台的话,大部分是需要拦截的,每个方法上面写注解很麻烦,就可以直接使用拦截器来实现 只需要注解的文件删掉...