Spring-常用注解
文章目录
spring注解驱动开发
IOC
组件注册
- @Configuration
- @ComponentScan
- @Bean
- @PropertySource
- @Autowired
- @Inject
- @Resource
生命周期
- @Bean(initMethod="xxxx",destoryMethod="xxxx")
- @PostConstruct @PreDestory
Value赋值
- @Value
- @PropertySource
自动装配
- @Autowired
- @Inject
- @Resource
- @Primary
AOP
- @Aspect
- @EnableAspectJAutoProxy
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论