中级农民
- 积分
- 111
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2020-10-10
- 最后登录
- 1970-1-1
|
注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
刚开始做SpringBoot的项目,注释功能太多了,举个例子:
1) Spring Core Annotations
1.1) @Configuration
1.2) @ComponentScan
1.3) @Autowired
1.4) @Component
1.5) @Bean
1.6) @Qualifier
1.7) @Primary
1.8) @Required
1.9) @Value
1.10) @DependsOn
1.11) @Lazy
1.12) @Lookup
1.13) @Scope
1.14) @Profile
1.15) @Import
1.16) @ImportResource
1.17) @PropertySource
2) Spring MVC Annotations
2.1) @Controller
2.2) @Service
2.3) @Repository
2.4) @RequestMapping
2.5) @RequestBody
2.6) @GetMapping
2.7) @PostMapping
2.8) @PutMapping
2.9) @DeleteMapping
2.10) @PatchMapping
2.11) @ControllerAdvice
2.12) @ResponseBody
2.13) @ExceptionHandler
2.14) @ResponseStatus
2.15) @PathVariable
2.16) @RequestParam
2.17) @RestController
2.18) @ModelAttribute
2.19) @CrossOrigin
2.20) @InitBinder
3) Spring Boot Annotations
3.1) @SpringBootApplication
3.2) @EnableAutoConfiguration
3.3) @ConditionalOnClass and @ConditionalOnMissingClass
3.4) @ConditionalOnBean and @ConditionalOnMissingBean
3.5) @ConditionalOnProperty
3.6) @ConditionalOnResource
3.7) @ConditionalOnWebApplication and @ConditionalOnNotWebApplication
3.8) @ConditionalExpression
3.9) @Conditional
这么多。大家是怎么学习的呢?
|
上一篇: Splunk里面的index=main是啥意思有人知道不?下一篇: 请问LA附近或者网上有什么比较好的coding bootcamp
|