基于spring boot&mybatis实现controller层、dao层拦截器
一、Controller层拦截器自定义注解@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)public @interface MyAnnotation { boolean value() default true;}实现HandlerInterceptor接口创建拦截器public class MyInterceptor implements HandlerInterceptor { @Overr
原创
2020-11-05 17:10:26 ·
966 阅读 ·
0 评论