northfun / northfun.github.io

0 stars 0 forks source link

Spring Annotations #3

Open northfun opened 3 years ago

northfun commented 3 years ago

接手了团队中的Java后台项目,我这Gopher就借此学习下Spring,目前最需解决的障碍是随处可见的annotations,从生命周期、作用、特点几个方面总结。参考

参考

百度查用vim写spring boot项目,召回率0。google搜索结果乐观。看到了这个spring.vim,没亲测,项目四年前停更,可能没人关注吧。


和Bean相关:


tools:

@Slf4j

controller class:

@RestController

@Controller

@RequestMapping

@FeignClient


member:

@Value("${aa.bb.cc}")

@Resource

@Autowired


method:

@PostMapping

@GetMapping

@PutMapping

@RequiresPermissions

@Transactional


param:

@RequestParam

@RequestBody

@PathVariable

@Valid @Validated


dto class:

@Buidler

@Getter

@JsonInclude