springboot 自定义一个简单拦截器

很多时候我们都需要自定义一个拦截器来拦截一些请求,那么在springboot中怎么自定义一个拦截器呢? 1、新建一个springboot的项目(略)     项目结构:      2、导入相应的依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=
相关文章
相关标签/搜索