摘要:
RequestBodyAdvice和注解方式进行统一参数处理demo @Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface 阅读全文
摘要:
Aspect切面进行统一参数处理demo //导入 implementation('org.springframework:spring-aspects:5.3.22') import com.example.mytester.entity.ClassRoom; import com.example 阅读全文
摘要:
Filter过滤器进行统一参数处理demo import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; i 阅读全文
摘要:
Interceptor拦截器demo ##接口测试类 @RestController public class TestController { @RequestMapping(value = "/myInterceptorsTestUrl", method = RequestMethod.GET) 阅读全文