Add @Autowired and @Bean support for dependency injection