光の境
光の代碼學習基地
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
它山の石
閱讀(296)
評論(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接口的利弊(6660)
2.?prototype api 中文版(2443)
3.?struts2可以直接在頁面中調用action(857)
4.?smartupload and JExcel(718)
5.?iBatis使用記錄(575)
posts - 8, comments - 9, trackbacks - 0, articles - 2
Copyright © 它山の石
主站蜘蛛池模板:
高清一区二区三区免费视频
|
ssswww日本免费网站片
|
99久久免费精品视频
|
中文字幕亚洲一区二区va在线
|
国产精品亚洲一区二区三区久久
|
久久乐国产精品亚洲综合
|
综合偷自拍亚洲乱中文字幕
|
国产成人在线观看免费网站
|
亚洲国产成人无码AV在线
|
免费鲁丝片一级观看
|
亚洲国产欧美国产综合一区
|
国产老女人精品免费视频
|
久久久久久亚洲精品无码
|
哒哒哒免费视频观看在线www
|
青草久久精品亚洲综合专区
|
亚洲电影日韩精品
|
亚洲av日韩av无码
|
国产白丝无码免费视频
|
亚洲欧洲日产国码二区首页
|
黄页网站免费在线观看
|
亚洲AV色无码乱码在线观看
|
免费h黄肉动漫在线观看
|
久久精品乱子伦免费
|
99ri精品国产亚洲
|
国产99视频精品免费观看7
|
精品国产亚洲第一区二区三区
|
国产精品国产免费无码专区不卡
|
亚洲av成人中文无码专区
|
亚洲人成影院在线无码观看
|
爽爽爽爽爽爽爽成人免费观看
|
久久青青草原亚洲av无码app
|
男男AV纯肉无码免费播放无码
|
国产成人精品无码免费看
|
亚洲一区动漫卡通在线播放
|
免费永久看黄在线观看app
|
国产一级婬片A视频免费观看
|
亚洲理论在线观看
|
亚洲国产成人乱码精品女人久久久不卡
|
韩国免费A级毛片久久
|
天堂亚洲国产中文在线
|
国产亚洲精品免费视频播放
|