
spring
文章平均质量分 56
加肥猫lurious
我属鼠
展开
-
HandlerMethodArgumentResolver解析与使用
HandlerMethodArgumentResolver解析一、前言最近在项目中看到的一个接口,直接没见过这个写法,记录以下。二、源码源码不长,直接拷贝吧。/** * Strategy interface for resolving method parameters into argument values in * the context of a given request. * * @author Arjen Poutsma * @since 3.1 * @see Handl原创 2021-11-25 10:46:02 · 719 阅读 · 0 评论 -
springboot拦截器Interceptor
SpringBoot中拦截器Interceptor详解前言最近做微服务鉴权的时候,出现点问题,发现直接使用SpringSecurity不太好使。于是想自己使用拦截器来鉴权,但是又不知道咋用,写个博客记录一下吧。一、拦截器配置新建一个类实现HandlerInterceptor接口先看看这个接口的源码//// Source code recreated from a .class file by IntelliJ IDEA// (powered by Fernflower decompiler)原创 2021-03-19 09:29:45 · 242 阅读 · 0 评论