Spring Boot 实现自定义拦截器

1.创建一个类实现 HandlerInterceptor 接口,重写接口的方法,添加@Component 注解,这个注解是为后面的使用时进行注入。例: package com.donlex.mybatiswithspringboot.component; import com.donlex.mybatiswithspringboot.model.User; import org.springfr
相关文章
相关标签/搜索