On the Internet a lot, finally all have no, or don't care cause
1, must be checked first three configuration file if you have any questions,
2, check the annotation is make out,
3, use first ApplicationContext app=new ClassPathXmlApplicationContext (" spring file ") method to get bean, testing, if no problem, the next step
4,, (my error) to check your main page if there is any new object access backend data, with annotations will not be able to use new objects, or isn't a factory must be obtained is null