摘要: SpringBoot注解大全 一、注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan让spring Boot扫描到C 阅读全文
posted @ 2019-07-24 11:25 Fernando_Y 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 1、GET请求会向数据库发索取数据的请求,从而来获取信息,该请求就像数据库的select操作一样,只是用来查询一下数据,不会修改、增加数据,不会影响资源的内容,即该请求不会产生副作用。无论进行多少次操作,结果都是一样的。 2、与GET不同的是,PUT请求是向服务器端发送数据的,从而改变信息,该请求就 阅读全文
posted @ 2019-07-24 10:42 Fernando_Y 阅读(9124) 评论(1) 推荐(0) 编辑
摘要: 组合注解(RequestMapping的变形) @GetMapping = @RequestMapping(method = RequestMethod.GET)@PostMapping = @RequestMapping(method = RequestMethod.POST)@PutMappin 阅读全文
posted @ 2019-07-24 09:13 Fernando_Y 阅读(535) 评论(0) 推荐(0) 编辑