idea 创建 springMVC 项目中 dispatcher-servlet.xml文件的基本配置

来源:互联网 发布:电子表格数据样板 编辑:程序博客网 时间:2024/06/07 13:30
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xmlns:context="http://www.springframework.org/schema/context"       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">    <!-- 配置自定义扫描包 -->    <context:component-scan base-package="Handlers"></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></beans>
阅读全文
0 0
原创粉丝点击