光の境
光の代碼學習基地
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
它山の石
閱讀(300)
評論(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接口的利弊(6664)
2.?prototype api 中文版(2449)
3.?struts2可以直接在頁面中調用action(861)
4.?smartupload and JExcel(722)
5.?iBatis使用記錄(580)
posts - 8, comments - 9, trackbacks - 0, articles - 2
Copyright © 它山の石
主站蜘蛛池模板:
国内精品免费视频精选在线观看
|
99在线视频免费
|
亚洲日本一区二区三区
|
1000部啪啪毛片免费看
|
亚洲成在人线aⅴ免费毛片
|
亚洲欧洲中文日韩av乱码
|
最近中文字幕完整免费视频ww
|
国产精品亚洲一区二区麻豆
|
久久激情亚洲精品无码?V
|
亚洲免费电影网站
|
深夜久久AAAAA级毛片免费看
|
亚洲第一福利视频
|
国产精品免费_区二区三区观看
|
国产一二三四区乱码免费
|
亚洲伊人久久大香线蕉啊
|
亚洲人成网站在线观看青青
|
亚洲日本在线免费观看
|
人人爽人人爽人人片A免费
|
亚洲成AV人片久久
|
国产日产亚洲系列
|
在线免费观看一级毛片
|
99精品视频免费在线观看
|
污污视频网站免费观看
|
亚洲国产成人手机在线电影bd
|
国产日产亚洲系列
|
免费a级毛片永久免费
|
57pao一国产成视频永久免费
|
国产成人高清精品免费观看
|
国产亚洲sss在线播放
|
亚洲免费在线视频
|
国产精品亚洲高清一区二区
|
午夜dj免费在线观看
|
免费无码毛片一区二区APP
|
国产va免费精品
|
国产成人va亚洲电影
|
亚洲国产视频久久
|
亚洲图片激情小说
|
久久精品亚洲精品国产色婷
|
亚洲综合在线另类色区奇米
|
亚洲AⅤ永久无码精品AA
|
天天拍拍天天爽免费视频
|