When I access a bean from spring bean configuration file using BeanFactory like this:
public class Person { private String id,address; @Autowired pri
As @jens suggested
you should active annotation scan
annotation scan
hope that helped