zoukankan      html  css  js  c++  java
  • Spring 配置XML文件头部文件格式

    普通格式:

    <?xml version="1.0" encoding="UTF-8" ?>   
    <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
         xmlns="http://www.springframework.org/schema/beans"  
         xsi:schemaLocation="http://www.springframework.org/schema/beans 
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">   
      
    </beans> 

    添加注解后的格式:

    <?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:context="http://www.springframework.org/schema/context"  
         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">   
      
    </beans>

  • 相关阅读:
    简单的使用rabbitmq的例子
    装饰者模式
    Zinterstore 命令
    策略模式
    简单工厂模式
    getFields()与getDeclaredFields()区别
    解决Jetty下EL版本冲突的问题
    网站ssl配置
    webservice 项目 配置wsdl
    js前端clone的要诀
  • 原文地址:https://www.cnblogs.com/tanhao/p/6605971.html
Copyright © 2011-2022 走看看