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整合工作小結
英文簡歷詞匯
表格特效代碼全集中
搜索
積分與排名
積分 - 45357
排名 - 1067
最新評論
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 關鍵字 (10164)
2.?AJAX傳參從失敗到成功小結:(2971)
3.?org.xml.sax.SAXNotRecognizedException:(轉載)(2510)
4.?對比三個語言的 虛函數與抽象函數的區別(2364)
5.?js 天氣預報,蒙了我好久。(2185)
評論排行榜
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
閱讀(435)
評論(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
主站蜘蛛池模板:
道孚县
|
红安县
|
清苑县
|
温州市
|
南江县
|
阿拉善盟
|
黔南
|
武穴市
|
阜新
|
永丰县
|
舞阳县
|
台东县
|
乐昌市
|
迁西县
|
大理市
|
香河县
|
沂源县
|
西林县
|
册亨县
|
蓬安县
|
大同县
|
平陆县
|
晋州市
|
鄂托克前旗
|
聂拉木县
|
扬中市
|
宁波市
|
东光县
|
鲁甸县
|
宁德市
|
屯留县
|
龙门县
|
方山县
|
彭泽县
|
通道
|
龙井市
|
彝良县
|
乌鲁木齐县
|
博罗县
|
永顺县
|
台中县
|