Spring 配置文件 Spring 配置文件XML头部文件模板实例详解

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

Spring 配置文件 Spring 配置文件XML头部文件模板实例详解

  2021-03-24 我要评论
想了解Spring 配置文件XML头部文件模板实例详解的相关内容吗,在本文为您仔细讲解Spring 配置文件的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:Spring,配置文件XML,Spring,配置文件XML实现,下面大家一起来学习吧。

普通spring配置文件模板:

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

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们