<?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类)

  

最新文章

  1. Github 访问时出现Permission denied (public key)
  2. js奇葩错误 字符串传递问题
  3. Mysql分表教程
  4. BAT清理垃圾
  5. [翻译]利用C#获取终端服务(Terminal Services)会话的闲置时间
  6. voinc+vue实现级联选择
  7. java--GC Root有哪些
  8. git 创建新分支并推送到远程分支
  9. 每日质量NPM包事件绑定_bindme(详解React的this)
  10. Linux 4.10中两个新特性与我的一段故事
  11. win10中mount和unmount iso文件
  12. 【第二十七章】 springboot + zipkin(brave-okhttp实现)
  13. pandas的map函数与apply函数的区别
  14. 自己编写jQuery插件 之 无缝滚动
  15. 哇塞!HTML5 实现的雨滴效果 CSS发抖
  16. C# 6.0可能的新特性及C#发展历程[转]
  17. Linux 下 JDK + Eclipse + PyDev 安装与配置
  18. Android 底部TabActivity(1)——FragmentActivity
  19. php 面试常问问题
  20. 第十五章 MySQL 数据库

热门文章

  1. java多线线程停止正确方法
  2. 利用VMware14安装虚拟机(Win7&amp;CentOS6.4)
  3. js与Jquery的对比
  4. BZOJ 1594: [Usaco2008 Jan]猜数游戏 线段树 + 思维 + 二分
  5. PAT_A1113#Integer Set Partition
  6. ADB 常用命令学习
  7. softmax回归---sigmoid(1)
  8. HDU 2266 How Many Equations Can You Find(模拟,深搜)
  9. [jzoj 5778]【NOIP提高A组模拟2018.8.8】没有硝烟的战争 (博弈论+dp)
  10. 08.Web服务器-2.HTTP协议介绍