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