To Run all the below annotations we have to use context annotation config.

  • @Autowired
  • @Resource
  • @PostConstruct
  • @PreDestroy
  • @Qualifier
  • @Required
  • @Bean
  • @Component
  • @Service
  • @Repository
To run all the above spring annotations we have to configure <context:annotation-config/> in XML file.

Comments