普通spring配置文件模板:xml version="1.0" encoding="UTF-8" beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins...
普通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>
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
织梦狗教程
本文标题为:Spring 配置文件XML头部文件模板实例详解


基础教程推荐
猜你喜欢
- JVM分析之类加载机制详解 2023-04-06
- Project Reactor源码解析publishOn使用示例 2023-04-12
- 用java实现扫雷游戏 2022-12-06
- Java去掉小数点后面无效0的方案与建议 2023-02-18
- 一文了解Java 线程池的正确使用姿势 2023-06-17
- 全局记录Feign的请求和响应日志方式 2023-01-09
- SpringBoot配置文件中密码属性加密的实现 2023-03-11
- 工厂方法在Spring框架中的运用 2023-06-23
- Java File类的概述及常用方法使用详解 2023-05-18
- Java使用EasyExcel进行单元格合并的问题详解 2023-01-18