http://www.yiibai.com/spring_mvc/spring-4-mvc-helloworld-tutorial-annotation-javaconfig-full-example.html 相当于不用写web.xml和配置的xml文件,直接通过类和注解的方式来实现了