zoukankan      html  css  js  c++  java
  • springmvc-servlet.xml(springmvc-servlet.xml 配置 增强配置)

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

      

  • 相关阅读:
    jQueryEasyUi行编辑打造增删改查
    css样式DEMO
    jqueryEasyui常用代码
    Jquery easyui tree 一些常见操作
    EasyUI项目中的自定义JS
    easyui里弹窗的两种表现形式
    EasyUI扩展方法
    JS-easyui 扩展easyui.datagrid,添加数据loading遮罩效果代码
    Being a Hero (hdu 3251 最小割 好题)
    AWS携手上海嘉定政府推出首个联合孵化器 为创业公司拓展AWS云服务可用资源
  • 原文地址:https://www.cnblogs.com/1020182600HENG/p/6724728.html
Copyright © 2011-2022 走看看