相关知识
关于拦截器的相关知识可参考:https://jinnianshilongnian.iteye.com/blog/1670856
本章目标
学会在 SpringBoot 的项目中怎么配置拦截器
操作步骤
添加依赖
引入 Spring Boot Starter 父工程
![59776b917ad19207974f3f53f9b7ab06.png](https://img-blog.csdnimg.cn/img_convert/59776b917ad19207974f3f53f9b7ab06.png)
引入 spring-boot-starter-web 的依赖
![f35b92b0e54b05ca534ff81929930810.png](https://img-blog.csdnimg.cn/img_convert/f35b92b0e54b05ca534ff81929930810.png)
编码
编写拦截器
![a6547765d40a65b180b38ec4f53b1499.png](https://img-blog.csdnimg.cn/img_convert/a6547765d40a65b180b38ec4f53b1499.png)
关于拦截器的相关知识可参考:https://jinnianshilongnian.iteye.com/blog/1670856
学会在 SpringBoot 的项目中怎么配置拦截器
添加依赖
引入 Spring Boot Starter 父工程
引入 spring-boot-starter-web 的依赖
编码
编写拦截器