heting
BlogJava
::
首頁(yè)
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
::
40 隨筆 :: 9 文章 :: 45 評(píng)論 :: 0 Trackbacks
<
2025年7月
>
日
一
二
三
四
五
六
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
5
6
7
8
9
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
(3)
給我留言
查看公開(kāi)留言
查看私人留言
隨筆分類(lèi)
c#范例(4)
(rss)
java范例
(rss)
js(3)
(rss)
linux(1)
(rss)
WebSphere(1)
(rss)
數(shù)據(jù)庫(kù)(3)
(rss)
隨筆檔案
2010年10月 (1)
2010年8月 (5)
2010年3月 (2)
2009年11月 (2)
2009年9月 (1)
2009年8月 (1)
2009年7月 (2)
2009年5月 (1)
2009年4月 (3)
2009年3月 (4)
2009年2月 (1)
2009年1月 (3)
2008年12月 (2)
2008年11月 (7)
2008年10月 (4)
2008年9月 (1)
文章檔案
2008年9月 (9)
搜索
最新評(píng)論
1.?re: struts2+freemarker中防止表單的重復(fù)提交token
@51互聯(lián)云-濟(jì)南程序猿
你什么都不懂,瞎說(shuō)
--人
2.?re: struts2+freemarker中防止表單的重復(fù)提交token
沒(méi)關(guān)系,大家好,什么都沒(méi)有
--人
3.?re: struts2+freemarker中防止表單的重復(fù)提交token
套頭
--人
4.?re: struts2+freemarker中防止表單的重復(fù)提交token
評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
--51互聯(lián)云-濟(jì)南程序猿
5.?re: struts1文件上傳和下載
評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
--zuidaima
閱讀排行榜
1.?struts1文件上傳和下載(21137)
2.?javax.naming.CommunicationException 的一個(gè)相關(guān)異常(已解決)(11559)
3.?自己寫(xiě)的一個(gè)c#winform打印類(lèi)(8518)
4.?C# 與 C++ 數(shù)據(jù)類(lèi)型比較及結(jié)構(gòu)體轉(zhuǎn)換 (7225)
5.?WebSphere7.0 上部署struts2 找不到用于處理 JSP 的擴(kuò)展處理器(2991)
評(píng)論排行榜
1.?struts1文件上傳和下載(23)
2.?自己寫(xiě)的一個(gè)c#winform打印類(lèi)(8)
3.?struts2+freemarker中防止表單的重復(fù)提交token(6)
4.?Ireport在瀏覽器中的顯示代碼(2)
5.?EJ3.0將EJB程序和WEb程序發(fā)布到weblogic10.3是出現(xiàn)的錯(cuò)誤weblogic.wsee.async.AsyncResponseBean(2)
spring1
<?
xml version="1.0" encoding="UTF-8"
?>
<
beans
xmlns
="http://www.springframework.org/schema/beans"
xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation
="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
>
<
bean
id
="dataSource"
class
="org.apache.commons.dbcp.BasicDataSource"
>
<
property
name
="driverClassName"
value
="com.microsoft.jdbc.sqlserver.SQLServerDriver"
>
</
property
>
<
property
name
="url"
value
="jdbc:microsoft:sqlserver://127.0.0.1:1433;databaseName=pubs;selectMethod=cursor"
>
</
property
>
<
property
name
="username"
value
="sa"
></
property
>
</
bean
>
<!--
hibernate部分
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.SQLServerDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list><value>hibernate/Users.hbm.xml</value></list>
</property>
</bean>
<bean id="userDao" class="dao.impl.hibernateUsersDaoimpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
hibernate部分
-->
<!--
ibatis部分
-->
<
bean
id
="sqlMapClient"
class
="org.springframework.orm.ibatis.SqlMapClientFactoryBean"
>
<
property
name
="dataSource"
ref
="dataSource"
></
property
>
<
property
name
="configLocation"
value
="classpath:sqlmapclient.xml"
></
property
>
</
bean
>
<
bean
id
="userDao"
class
="dao.impl.ibatisUsersDaoimpl"
>
<
property
name
="sqlMapClient"
ref
="sqlMapClient"
></
property
>
</
bean
>
<
bean
id
="transactionManager"
class
="org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<
property
name
="dataSource"
ref
="dataSource"
></
property
>
</
bean
>
<!--
ibatis部分
-->
<
bean
id
="realFacade"
class
="facade.Facade"
>
<
property
name
="userDao"
ref
="userDao"
></
property
>
</
bean
>
<!--
<bean id="transctionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>裝備
-->
<!--
抽象的代理
-->
<
bean
id
="abstractProxy"
abstract
="true"
class
="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
>
<
property
name
="transactionManager"
ref
="transactionManager"
></
property
>
<
property
name
="transactionAttributes"
>
<
props
>
<
prop
key
="insert*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
="uptate*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
="dele*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
="sele*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
="login*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
="get*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
</
props
>
</
property
>
</
bean
>
<!--
具體的代理
-->
<
bean
id
="facade"
parent
="abstractProxy"
>
<
property
name
="target"
ref
="realFacade"
></
property
>
</
bean
>
<!--
struts
-->
<
bean
name
="/insert"
class
="struts.action.InsertAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/login"
class
="struts.action.LoginAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/getAll"
class
="struts.action.getAllAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/find"
class
="struts.action.FindAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/delete"
class
="struts.action.DeleteAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/update"
class
="struts.action.UpdateAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
<
bean
name
="/fpage"
class
="struts.action.FpageAction"
>
<
property
name
="facade"
ref
="facade"
></
property
>
</
bean
>
</
beans
>
posted on 2008-09-17 22:36
賀挺
閱讀(125)
評(píng)論(0)
編輯
收藏
新用戶(hù)注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶(hù)
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
Powered by:
BlogJava
Copyright © 賀挺
主站蜘蛛池模板:
聂拉木县
|
永川市
|
仁布县
|
玛曲县
|
东安县
|
山阴县
|
和顺县
|
大同县
|
偏关县
|
锡林浩特市
|
股票
|
乌拉特后旗
|
蓬安县
|
永州市
|
孟州市
|
郓城县
|
凤台县
|
肃南
|
保靖县
|
石首市
|
微博
|
民勤县
|
清新县
|
崇文区
|
陵水
|
成武县
|
崇阳县
|
临武县
|
岳普湖县
|
延川县
|
静海县
|
同江市
|
阳春市
|
洪雅县
|
永平县
|
清镇市
|
双流县
|
株洲市
|
邛崃市
|
罗山县
|
南安市
|