springMVC-笔记001-mvc配置文件
来源:互联网 发布:魔龙诀时装进阶数据 编辑:程序博客网 时间:2024/06/08 09:03
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:context="http://www.springframework.org/schema/context"xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"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.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"><!-- 配置注解 --><!-- <context:annotation-config /> --><!-- 组件扫描 --><context:component-scan base-package="com.mvc.controller"><!-- 扫描controller --><!-- 非只扫描controller,如base-package有service,可能造成事务失效 --><context:include-filter type="annotation"expression="org.springframework.stereotype.Controller" /></context:component-scan><!-- 启动mvc注解 --><mvc:annotation-driven /><!-- 静态资源放行 --><!-- <mvc:resources location="/resources/" mapping="/resources/**" /> --><!-- 配置视图解析器 --><bean id="jspViewResolver"class="org.springframework.web.servlet.view.InternalResourceViewResolver"><property name="viewClass"value="org.springframework.web.servlet.view.JstlView" /><property name="prefix" value="/WEB-INF/jsp/" /><property name="suffix" value=".jsp" /></bean></beans>
阅读全文
0 0
- springMVC-笔记001-mvc配置文件
- spring MVC学习笔记(二) springMVC.xml配置文件解析
- springmvc笔记之 -- 配置文件
- springMVC-笔记002-web配置文件
- springMVC-笔记003-spring配置文件
- SpringMvc教程(六)--springMVC-mvc.xml 配置文件片段讲解
- springmvc笔记之 -- 配置文件简单例子
- SpringMVC学习笔记1_XML配置文件
- springMvc 主配置文件 笔记 总结备用
- SpringMVC学习笔记(二)-----配置文件
- MVC设计模式/SpringMVC/SSM框架整合配置文件讲解
- SpringMVC配置文件
- SpringMVC配置文件
- springMvc配置文件
- SpringMVC配置文件
- SpringMVC配置文件
- springmvc配置文件
- springMVC配置文件
- Hibernate工作原理
- Android笔记(四)DecorView & ViewRootImpl & Window
- Spring中的事务管理
- java 保留小数的四种方法
- Hibernate有哪几种查询数据的方式
- springMVC-笔记001-mvc配置文件
- 数据结构.单链表
- vb.net 教程 5-16 图像处理之ImageAttributes 类1 伽玛、阈值和颜色替换
- Java NIO 总结
- Spring整合javamail异常:
- Google Test 系列之一 HelloTest
- unite2017《Unity企业级支持案例与分析》
- 交换机的基本配置命令
- 按位与、或、异或的区别