@SpringBootApplication:@Configuration:@Value:@ConfigurationProperties(preifx="xxx"):下面的属性根据配置文件中变量名或方法名自动注入@ComponentScan:自动扫描本包下面的东西@Bean:如果类没有@Configuration会有很大的区别,据说是多例,如果有的话就是生成一个代理对象。@RestController:@Controller:@ResponseBody:@RequestBody:@MapperScan:扫包@Runwith(SpringRunner.class)@SpringBaootTest@RequestMapping@GetMapping@DeleteMappingPostMappingPutMapping修改@PathVariable@PointCut@Aspect@ComponentScan@Autowired@Resource@After@Before@Around@Scope@EnableScheduling@Scheduled配合上面最定时器@ControllerAdvice@ExceptionHandler异常处理.
springboot一些注解
Spring注解详解
最新推荐文章于 2024-09-06 13:59:18 发布
本文深入解析Spring框架中关键注解的使用与作用,包括@SpringBootApplication、@Configuration、@Value等,阐述了它们在微服务架构中的核心地位及如何通过这些注解实现依赖注入、配置加载等功能。
1790

被折叠的 条评论
为什么被折叠?



