pear
導航
BlogJava
首頁
新隨筆
聯系
聚合
管理
<
2006年10月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
30
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
1
2
3
4
統計
隨筆 - 37
文章 - 1
評論 - 39
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
隨筆分類
(25)
Hibernate(1)
(rss)
Spring
(rss)
Struts
(rss)
心得體會(8)
(rss)
技術(11)
(rss)
摘引(5)
(rss)
新聞
(rss)
隨筆檔案
(37)
2006年12月 (3)
2006年11月 (4)
2006年10月 (5)
2006年9月 (5)
2006年8月 (6)
2006年7月 (2)
2006年6月 (12)
文章檔案
(1)
2006年8月 (1)
相冊
picture
收藏夾
(1)
freemarker+struts(webwork)+spring+hibernate(1)
(rss)
代碼
Eclipse 常用插件列表
Eclipse 常用插件列表
jni
Open Session In View
Struts+Spring整合的三種方法
Tapestry Spring Hibernate整合工作小結
英文簡歷詞匯
表格特效代碼全集中
搜索
積分與排名
積分 - 45000
排名 - 1070
最新評論
1.?re: 自己編寫的NIO非阻塞聊天室[未登錄]
麻煩下次寫程序的時候寫點注釋。
--1
2.?re: js 天氣預報,蒙了我好久。
.good
--zhuge
3.?re: 重新學習 Hibernate fetch lazy cascade inverse 關鍵字
還是感謝樓主,另外問一下,為啥有異常拋出,你的環境是怎樣的?沒有spring?請寫清楚點,博客至少讓別人能看懂。
--satitan
4.?re: 重新學習 Hibernate fetch lazy cascade inverse 關鍵字
pear 還是蠻風趣的。
--逗號
5.?re: 我做的相冊系統(超級女生)
呵呵,不錯,支持下
--劉俊杰
閱讀排行榜
1.?重新學習 Hibernate fetch lazy cascade inverse 關鍵字 (10151)
2.?AJAX傳參從失敗到成功小結:(2963)
3.?org.xml.sax.SAXNotRecognizedException:(轉載)(2502)
4.?對比三個語言的 虛函數與抽象函數的區別(2360)
5.?js 天氣預報,蒙了我好久。(2171)
評論排行榜
1.?我做的相冊系統(超級女生)(8)
2.?AJAX傳參從失敗到成功小結:(8)
3.?自己寫了個ejb3的小例子代碼 ( 之 三 )(3)
4.?javamail深入淺出 --作者:我心依舊(2)
5.?動態代理代碼(體驗攔截方法)(2)
ServiceLocator 中一般包含static方法
1。ServiceLocator 中一般包含static方法
2。ServiceLocator角色 ?如果讓TopBaseAction承擔(可以非靜態,也很方便)
3。ServiceLocator的角色和SessionFactory有些類似(都是用工廠模式)
10月5日,今天玩了一下把 Service層的實力注入到Action里面,我的ServiceLocator類也終于可以睡覺去了.
posted on 2006-07-10 14:53
pear
閱讀(422)
評論(1)
編輯
收藏
所屬分類:
心得體會
Comments
#
re: ServiceLocator 中一般包含static方法
pear
Posted @ 2006-10-05 14:24
三種情況的getBean()呵呵,可以不寫了.
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
ProductService productService = (ProductService) context.getBean("myProductService");
ApplicationContext context =
new FileSystemXmlApplicationContext("C:/myContext.xml");
ProductService productService =
(ProductService) context.getBean("myProductService");
ApplicationContext context =
new ClassPathXmlApplicationContext("myContext.xml");
ProductService productService =
(ProductService) context.getBean("myProductService");
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
相關文章:
傷心太平洋,左連接和內聯的區別
重新學習 Hibernate fetch lazy cascade inverse 關鍵字
js 天氣預報,蒙了我好久。
用Sun creator創建的 jsf 項目部署到其他服務器的問題:
BBS中的一個查詢問題(原創)
AJAX傳參從失敗到成功小結:
ServiceLocator 中一般包含static方法
JavaMail中文附件處理(轉載)
Powered by:
BlogJava
Copyright © pear
主站蜘蛛池模板:
余江县
|
新沂市
|
镇平县
|
辽阳县
|
成都市
|
大港区
|
隆尧县
|
上虞市
|
祁阳县
|
无锡市
|
通道
|
自贡市
|
南雄市
|
上饶县
|
七台河市
|
承德市
|
宜丰县
|
固安县
|
且末县
|
镇平县
|
尖扎县
|
宁国市
|
镶黄旗
|
扬州市
|
罗甸县
|
城固县
|
栾城县
|
中超
|
抚宁县
|
珲春市
|
孟津县
|
巴中市
|
宜宾县
|
桃江县
|
南阳市
|
阳泉市
|
昂仁县
|
衡东县
|
苍山县
|
塔城市
|
华坪县
|