Spring IoC控制反转创建实例

Spring IoC控制反转创建实例
写一个配置文件beans.xml,配置文件的约束可以访问:
完整链接:https://repo.spring.io/libs-release-local/org/springframework/spring/4.1.3.RELEASE/spring-framework-4.1.3.RELEASE-docs.zip!/spring-framework-reference/html/xsd-config.html
短链:http://uee.me/aWWFA

 

1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4     xsi:schemaLocation="
5         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
6 
7     <!-- bean definitions here -->
8 
9 </beans>
约束代码

 

posted @ 2019-07-16 21:20  孤舟浮岸  阅读(296)  评论(0编辑  收藏  举报