![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
星空是怎样的啊
这个作者很懒,什么都没留下…
展开
-
springboot集成redis-部分
springboot集成redis 1.添加依赖(2.0以后) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>2.1.4.RELEASE</version> </dependency> <原创 2020-07-12 11:00:13 · 72 阅读 · 0 评论 -
springboot拦截器配置
1.springboot拦截器配置 1.1写配置类—第一种 @Configuration //配置类注解 继承WebMvcConfiguer 实现addInterceptors public class SpringMvcConfig extends WebMvcConfigurer { @Autowired private CommonInterceptor commonInterceptor; //注入拦截器 /** * 拦截器配置 * @param regi原创 2020-07-12 10:55:00 · 169 阅读 · 0 评论