摘要: JDK静态代理 代理类中,指定了需要代理的对象,已经固定好了,所以为静态代理 public class StaticProxy { interface UserService{ void addUser(); } static class UserServiceImpl implements Use 阅读全文
posted @ 2021-02-23 11:04 飘落在蓝天边 阅读(74) 评论(0) 推荐(0) 编辑
摘要: springboot @RestController 作用于controller层,返回json格式的数据 @RequestMapping 请求地址映射,可接受任意请求方式 @requestBody 请求参数,转换成json格式 @requestParam 请求参数,默认为 x-www-form-u 阅读全文
posted @ 2021-02-23 10:02 飘落在蓝天边 阅读(64) 评论(0) 推荐(0) 编辑