springmvc-servlet.xml(springmvc-servlet.xml 配置 增强配置)
2024-08-31 06:05:13
<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"
> <!-- 视图解析器 配置前缀和后缀 要据modelAndView中封装视图名找到目标页面-->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/view/"></property>
<property name="suffix" value=".jsp"></property>
</bean> <bean name="/hello.do" class="com.wh.controller.HelloController"/> </beans>
---------------------------------------------springmvc-servlet.xml 配置 增强配置
dispatcherServlet 前端控制器
org.springframework.web.servlet.view.InternalResourceViewResolver 视图解析器(配置前缀和后缀)
org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping 映射器(将name属性作为URL请求)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter 适配器(寻找实现Controller接口的action类)
最新文章
- Github 访问时出现Permission denied (public key)
- js奇葩错误 字符串传递问题
- Mysql分表教程
- BAT清理垃圾
- [翻译]利用C#获取终端服务(Terminal Services)会话的闲置时间
- voinc+vue实现级联选择
- java--GC Root有哪些
- git 创建新分支并推送到远程分支
- 每日质量NPM包事件绑定_bindme(详解React的this)
- Linux 4.10中两个新特性与我的一段故事
- win10中mount和unmount iso文件
- 【第二十七章】 springboot + zipkin(brave-okhttp实现)
- pandas的map函数与apply函数的区别
- 自己编写jQuery插件 之 无缝滚动
- 哇塞!HTML5 实现的雨滴效果 CSS发抖
- C# 6.0可能的新特性及C#发展历程[转]
- Linux 下 JDK + Eclipse + PyDev 安装与配置
- Android 底部TabActivity(1)——FragmentActivity
- php 面试常问问题
- 第十五章 MySQL 数据库
热门文章
- java多线线程停止正确方法
- 利用VMware14安装虚拟机(Win7&;CentOS6.4)
- js与Jquery的对比
- BZOJ 1594: [Usaco2008 Jan]猜数游戏 线段树 + 思维 + 二分
- PAT_A1113#Integer Set Partition
- ADB 常用命令学习
- softmax回归---sigmoid(1)
- HDU 2266 How Many Equations Can You Find(模拟,深搜)
- [jzoj 5778]【NOIP提高A组模拟2018.8.8】没有硝烟的战争 (博弈论+dp)
- 08.Web服务器-2.HTTP协议介绍