基本内容:
springmvc:包含网站跳转的逻辑控制
1.扫描业务逻辑组件,只扫描控制器。<context:component-scan base-package=""></>
2.试图解析器:Internal
3.两个标准配置
将springmvc不能处理的请求交给tomcat
能支持springmvc更高级的一些功能,JSR303校验,快捷的ajax,映射动态请求
<context:component-scan base-package="com.meng" use-default-filters="false">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<mvc:default-servlet-handler/>
<mvc:annotation-driven/>