zoukankan      html  css  js  c++  java
  • 主流框架(SSH及SSM)配置文件的模板头文件

    SSH三大框架整合配置头文件模板如下:

    一:Spring配置文件(beans.xml)模板:
    <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: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/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">
    </beans>

    二:struts2配置文件(struts.xml)头文件
    <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">

    三:hibernate配置文件(hibernate.cfg.xml)头文件
    <!DOCTYPE hibernate-configuration PUBLIC
              "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
              "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


    SSM三大框架整合配置文件的模板如下:

    Spring配置文件(beans.xml)模板:
    <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: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/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">
    </beans>

    四:SpringMVC配置文件(spring-servlet.xml)头文件
    <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"
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
                            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
    </beans>

    五:Mybatis配置文件(Mybatis.xml)头文件
    <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
    "http://mybatis.org/dtd/mybatis-3-config.dtd">

    转载:http://blog.csdn.net/kevindeng35/article/details/78009831

  • 相关阅读:
    Wireshark安装、简单使用、过滤器简介
    iOS中多线程原理与runloop介绍
    iphone客户端上传图片到服务器
    微信公众平台用户分组管理开发文档详解
    微信公众平台开发:进阶篇(Web App开发入门)
    如何使用NSOperations和NSOperationQueues
    IOS 多线程的一些总结
    Fiddler (五) Mac下使用Fiddler
    在其他app里预览文档
    UIWebView加载ANSI格式的txt文件出现乱码问题解决
  • 原文地址:https://www.cnblogs.com/llfy/p/8472866.html
Copyright © 2011-2022 走看看