光の境
光の代碼學習基地
BlogJava
首頁
新隨筆
聯系
聚合
管理
隨筆檔案
2007年9月 (2)
2007年7月 (1)
2007年6月 (1)
2007年4月 (4)
文章檔案
2007年7月 (1)
2007年4月 (1)
最新隨筆
1.?struts2可以直接在頁面中調用action
2.?struts2中action實現Preparable接口的利弊
3.?IT人員健康工作表
4.?javascript總為這種問題費心力,索性貼在這吧
5.?spring學習記錄
6.?smartupload and JExcel
7.?prototype api 中文版
8.?iBatis使用記錄
最新評論
1.?re: struts2中action實現Preparable接口的利弊
這個接口確實不大好,好處是在重載方法prepare方法里可以做初始化
--路人甲
2.?re: prototype api 中文版
79cha.com 頂了
--renren
3.?re: prototype api 中文版
好!很好!非常好!
--whsx_01
4.?re: prototype api 中文版
ding !!!!!
--js
5.?re: struts2中action實現Preparable接口的利弊
關注中 樓主把學習struts2的經驗告訴下吧 最近一直研究這個
聯系方式 wanganyuaa@163.com
qq 86322989
不勝感激
--way
spring學習記錄
Posted on 2007-04-07 17:30
它山の石
閱讀(303)
評論(0)
編輯
收藏
這里只貼出XML
1
<?
xml version="1.0" encoding="UTF-8"
?>
2
<!
DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
3
"http://www.springframework.org/dtd/spring-beans.dtd"
>
4
<
beans
>
5
<!--
分散配置
-->
6
<
bean
id
="jdbc"
7
class
="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
8
<
property
name
="locations"
>
9
<
list
>
10
<
value
>
jdbc.properties
</
value
>
11
<
value
>
temp.properties
</
value
>
12
</
list
>
13
</
property
>
14
</
bean
>
15
16
<!--
自定義屬性編輯器配置器
-->
17
<
bean
id
="customEditorConfigurer"
class
="org.springframework.beans.factory.config.CustomEditorConfigurer"
>
18
<
property
name
="customEditors"
>
19
<
map
>
20
<
entry
key
="com.sigon.spring.service.Address"
>
21
<
bean
class
="com.sigon.spring.editor.AddressEditor"
></
bean
>
22
</
entry
>
23
</
map
>
24
</
property
>
25
</
bean
>
26
<!--
國際化
-->
27
<
bean
id
="messageSource"
class
="org.springframework.context.support.ResourceBundleMessageSource"
>
28
<
property
name
="basenames"
>
29
<
list
>
30
<
value
>
jdbc
</
value
>
31
</
list
>
32
</
property
>
33
</
bean
>
34
<!--
注冊監聽者
-->
35
<!--
<bean id="applistener" class="com.sigon.spring.listener.MyApplicationListener"/>
-->
36
<!--
目標對象
-->
37
<
bean
id
="welcomeServiceTarget"
class
="com.sigon.spring.service.WelcomeServiceImpl"
>
38
<
property
name
="greeting"
>
39
<
value
>
TOM
</
value
>
40
</
property
>
41
</
bean
>
42
<!--
方法前通知
-->
43
<
bean
id
="myMethodBeforeAdvice"
class
="com.sigon.spring.aop.MyMethodBeforeAdvice"
/>
44
<!--
方法后通知
-->
45
<
bean
id
="myAfterReturningAdvice"
class
="com.sigon.spring.aop.MyAfterReturningAdvice"
/>
46
<!--
環繞通知
-->
47
<
bean
id
="myMethodInterceptor"
class
="com.sigon.spring.aop.MyMethodInterceptor"
/>
48
<!--
代理對象
-->
49
<
bean
id
="welcomeService"
class
="org.springframework.aop.framework.ProxyFactoryBean"
>
50
<
property
name
="proxyInterfaces"
>
51
<
list
>
52
<
value
>
com.sigon.spring.service.WelcomeService
</
value
>
53
<
value
>
com.sigon.spring.service.WelcomeService2
</
value
>
54
</
list
>
55
</
property
>
56
<
property
name
="interceptorNames"
>
57
<
list
>
58
<
value
>
myMethodBeforeAdvice
</
value
>
59
<
value
>
myAfterReturningAdvice
</
value
>
60
<
value
>
myMethodInterceptor
</
value
>
61
</
list
>
62
</
property
>
63
<
property
name
="target"
>
64
<
ref
bean
="welcomeServiceTarget"
/>
65
</
property
>
66
<!--
以類繼承方式
-->
67
<!--
<property name="proxyTargetClass">
-->
68
<!--
<value>true</value>
-->
69
<!--
</property>
-->
70
</
bean
>
71
72
<!--
<bean id="welcomeSpring" class="com.sigon.spring.service.WelcomeSpring" autowire="byType">
-->
73
<!--
<constructor-arg type="java.lang.String">
-->
74
<!--
<value>123</value>
-->
75
<!--
</constructor-arg>
-->
76
<!--
<constructor-arg type="java.lang.Integer">
-->
77
<!--
<value>456</value>
-->
78
<!--
</constructor-arg>
-->
79
<!--
<property name="homeAddress">
-->
80
<!--
<value>jilin.changchun.chunchengdajie.130022</value>
-->
81
<!--
</property>
-->
82
<!--
<property name="comAddress">
-->
83
<!--
<bean class="com.sigon.spring.service.Address">
-->
84
<!--
<property name="province">
-->
85
<!--
<value>${province}</value>
-->
86
<!--
</property>
-->
87
<!--
<property name="city">
-->
88
<!--
<value>${city}</value>
-->
89
<!--
</property>
-->
90
<!--
<property name="street">
-->
91
<!--
<value>${street}</value>
-->
92
<!--
</property>
-->
93
<!--
<property name="zipCode">
-->
94
<!--
<value>${zipcode}</value>
-->
95
<!--
</property>
-->
96
<!--
</bean>
-->
97
<!--
</property>
-->
98
<!--
<property name="prop">
-->
99
<!--
<props>
-->
100
<!--
<prop key="key1">werouiq</prop>
-->
101
<!--
<prop key="key2">ewlirzj;g</prop>
-->
102
<!--
<prop key="key1">dsruifqweuio</prop>
-->
103
<!--
</props>
-->
104
<!--
</property>
-->
105
<!--
<property name="welcome">
-->
106
<!--
<value>${jdbc.username}</value>
-->
107
<!--
</property>
-->
108
<!--
<property name="map">
-->
109
<!--
<map>
-->
110
<!--
<entry key="key1">
-->
111
<!--
<value>skycn</value>
-->
112
<!--
</entry>
-->
113
<!--
<entry key="key1">
-->
114
<!--
<value>diablo</value>
-->
115
<!--
</entry>
-->
116
<!--
<entry key="key3">
-->
117
<!--
<ref bean="byeService"/>
-->
118
<!--
</entry>
-->
119
<!--
<entry key="key4">
-->
120
<!--
<value>Blizzard</value>
-->
121
<!--
</entry>
-->
122
<!--
<entry key="key5">
-->
123
<!--
<list>
-->
124
<!--
<value>123</value>
-->
125
<!--
<value>456</value>
-->
126
<!--
<value>789</value>
-->
127
<!--
</list>
-->
128
<!--
</entry>
-->
129
<!--
<entry key="key6">
-->
130
<!--
<bean class="com.sigon.spring.service.ByeService">
-->
131
<!--
<property name="bye">
-->
132
<!--
<value>UC</value>
-->
133
<!--
</property>
-->
134
<!--
</bean>
-->
135
<!--
</entry>
-->
136
<!--
</map>
-->
137
<!--
</property>
-->
138
<!--
<property name="list">
-->
139
<!--
<list>
-->
140
<!--
<value>tom</value>
-->
141
<!--
<value>tom</value>
-->
142
<!--
<value>jetta</value>
-->
143
<!--
<value>1</value>
-->
144
<!--
<value>1</value>
-->
145
<!--
<value>2</value>
-->
146
<!--
<value>2.5</value>
-->
147
<!--
<bean class="com.sigon.spring.service.ByeService">
-->
148
<!--
<property name="bye">
-->
149
<!--
<value>KKK</value>
-->
150
<!--
</property>
-->
151
<!--
</bean>
-->
152
<!--
<ref bean="byeService"/>
-->
153
<!--
<list>
-->
154
<!--
<value>123</value>
-->
155
<!--
<value>456</value>
-->
156
<!--
<ref bean="byeService"/>
-->
157
<!--
</list>
-->
158
<!--
</list>
-->
159
<!--
</property>
-->
160
<!--
<property name="is">
-->
161
<!--
<list>
-->
162
<!--
<value>1</value>
-->
163
<!--
<value>1</value>
-->
164
<!--
<value>2</value>
-->
165
<!--
</list>
-->
166
<!--
</property>
-->
167
<!--
<property name="set">
-->
168
<!--
<set>
-->
169
<!--
<value>123</value>
-->
170
<!--
<value>456</value>
-->
171
<!--
<value>asdi</value>
-->
172
<!--
<bean class="com.sigon.spring.service.ByeService"></bean>
-->
173
<!--
<ref bean="byeService"/>
-->
174
<!--
</set>
-->
175
<!--
</property>
-->
176
<!--
</bean>
-->
177
<!--
<bean id="byeService" class="com.sigon.spring.service.ByeService" init-method="init">
-->
178
<!--
<property name="bye">
-->
179
<!--
<value>bye!!!</value>
-->
180
<!--
</property>
-->
181
<!--
</bean>
-->
182
<!--
<bean id = "myBeanPostProcessor" class="com.sigon.spring.process.MyBeanPostProcessor"></bean>
-->
183
184
</
beans
>
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
公告
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
java
eamoi
oksonic
評論排行榜
1.?iBatis使用記錄(4)
2.?prototype api 中文版(3)
3.?struts2中action實現Preparable接口的利弊(2)
4.?IT人員健康工作表(0)
5.?javascript總為這種問題費心力,索性貼在這吧(0)
閱讀排行榜
1.?struts2中action實現Preparable接口的利弊(6667)
2.?prototype api 中文版(2452)
3.?struts2可以直接在頁面中調用action(864)
4.?smartupload and JExcel(725)
5.?iBatis使用記錄(584)
posts - 8, comments - 9, trackbacks - 0, articles - 2
Copyright © 它山の石
主站蜘蛛池模板:
a一级毛片免费高清在线
|
国产精品无码一区二区三区免费
|
免费jjzz在线播放国产
|
亚洲国产成人精品无码区二本
|
国产精品免费网站
|
中文字幕无码一区二区免费
|
日本免费人成黄页网观看视频
|
亚洲一区二区三区高清不卡
|
**毛片免费观看久久精品
|
美女视频黄的全免费视频网站
|
亚洲国产精品无码专区在线观看
|
亚洲午夜福利717
|
一级做a爰片久久毛片免费陪
|
亚洲国产成人精品女人久久久
|
永久免费在线观看视频
|
亚洲大片在线观看
|
99xxoo视频在线永久免费观看
|
久久久无码精品亚洲日韩蜜臀浪潮
|
XXX2高清在线观看免费视频
|
国产亚洲人成网站观看
|
亚洲免费视频网站
|
亚洲免费观看在线视频
|
好男人视频在线观看免费看片
|
亚洲成a人片在线不卡一二三区
|
亚洲综合成人网在线观看
|
亚洲视频免费一区
|
亚洲精品国产首次亮相
|
免费国产a国产片高清
|
一个人看的在线免费视频
|
免免费国产AAAAA片
|
亚洲小说图区综合在线
|
免费永久国产在线视频
|
在线观看免费视频网站色
|
精品日韩亚洲AV无码一区二区三区
|
在线观看视频免费完整版
|
亚洲中文字幕久久精品蜜桃
|
免费人成视网站在线观看不卡
|
两个人看的www视频免费完整版
|
久久久无码精品亚洲日韩蜜臀浪潮
|
成人免费淫片在线费观看
|
免费精品久久天干天干
|