springmvc4.0专题

Maven多模块 + Spring4.0.6 + SpringMVC4.0.6 + Mybatis 3.2.7 + log4j 2.1

参考: http://www.cnblogs.com/gwx238044/articles/6633252.html githud : https://github.com/2014team/Maven--Spring4.0.6-SpringMVC4.0.6-Mybatis-3.2.7-log4j-2.1

springmvc4.0一些常用的注释

1. @Controller       Controller控制器是通过服务接口定义的提供访问应用程序的一种行为,它解释用户的输入,将其转换成一个模型然后将试图呈献给用户。Spring MVC 使用 @Controller 定义控制器,它还允许自动检测定义在类路径下的组件并自动注册。如想自动检测生效,需在XML头文件下引入 spring-context: 1 2 3 4