![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
注解
独行老僧
点关注,不迷路
展开
-
@SpringBootApplication注解
@SpringBootApplication注解是一个组合注解,他整合了@Configuration 、@EnableAutoConfiguration、和@ComponentScan注解,并开启了SpringBoot程序的组件扫描和自动配置的功能,在开发SpringBoot程序的过程中,常常使用注解@Configuration 、@EnableAutoConfiguration、和@Compon...原创 2019-10-29 09:08:15 · 148 阅读 · 0 评论 -
@GetMapping注解
@GetMapping是Spring4.3提供的新注解,它是一个组合注解,等价于@RequestMapping(method = RequestMethod.Get ),用于简化开发,注意:@RequestMapping如果没有指定请求方式,将接收Get、Post、Head、Options等所有的请求方式.同理还有@PostMapping、@PutMapping、@DeleteMapping、@P...原创 2019-10-29 08:53:27 · 23534 阅读 · 3 评论 -
@PathVariable注解的作用
作用:@PathVariable 映射 URL 绑定的占位符带占位符的 URL 是 Spring3.0 新增的功能通过 @PathVariable 可以将 URL 中占位符参数绑定到控制器处理方法的入参中:URL 中的 {xxx} 占位符可以通过@PathVariable(“xxx“) 绑定到操作方法的入参中/** * @author: 独行老僧 * @description: 查找...原创 2019-10-29 08:35:46 · 194 阅读 · 0 评论