摘要: 注解支持的类型支持的请求类型支持的 Content-Type请求示例@PathVariableurlGET所有/test/{id}@RequestParamurlGET所有/test?id=1@RequestBodyBodyPOST/PUT/DELETE/PATCHjson { "id" : 1 } 阅读全文
posted @ 2023-02-08 16:22 wode林夕 阅读(217) 评论(0) 推荐(0) 编辑
摘要: IoC使软件组件松耦合。AOP让你能够捕捉系统中经常使用的功能,把它转化成组件。 AOP(Aspect Oriented Programming):面向切面编程,面向方面编程。(AOP是一种编程技术)AOP是对OOP的补充延伸。 AOP底层使用的就是动态代理来实现的。 Spring的AOP使用的动态 阅读全文
posted @ 2023-02-08 14:09 wode林夕 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1:来上代码 @AnnotationForTest() @RestController @RequestMapping("/test") public class TestController { @GetMapping("/test") public Result type(HttpServlet 阅读全文
posted @ 2023-02-08 10:22 wode林夕 阅读(425) 评论(0) 推荐(0) 编辑