-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspring-context.xml
More file actions
34 lines (25 loc) · 1.4 KB
/
Copy pathspring-context.xml
File metadata and controls
34 lines (25 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<!-- 自动扫描包 ,将带有注解的类 纳入spring容器管理 -->
<util:properties id="appProperties" location="classpath:/app.properties" />
<bean id="injectedObject" class="top.gonefuture.spring.InjectedObject">
<constructor-arg value="基本类型构造参数"/>
<!--<property name="defaultLocale" value="zh_CN"/>-->
</bean>
<bean id="user" class="top.gonefuture.spring.UserFactoryBean">
<property name="name" value="gonefuture"/>
<property name="email" value="gonefuture@qq.com"/>
</bean>
<bean id="hello" class="java.lang.String"/>
</beans>