zhangjingqiang's Blog
BlogJava
首頁
新隨筆
新文章
聯系
聚合
管理
posts - 5, comments - 0, trackbacks - 0
2007年2月5日
基于Ajax+Spring+Hibernate的用戶管理系統--配置
摘要: applicationContext.xml Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <? xml version="1.0" encoding="UTF-8" ?> 2 ...
閱讀全文
posted @
2007-02-15 11:27
zhangjingqiang 閱讀(697) |
評論 (0)
|
編輯
收藏
基于Spring+WebWork+iBATIS的游戲裝備交易系統--配置
摘要: applicationContext.xml Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <? xml version="1.0" encoding="UTF-8" ?> 2 ...
閱讀全文
posted @
2007-02-15 11:07
zhangjingqiang 閱讀(667) |
評論 (0)
|
編輯
收藏
基于Spring+Hibernate的網上廣告管理系統--配置
摘要: applicationContext.xml Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <? xml version="1.0" encoding="UTF-8" ?> 2 ...
閱讀全文
posted @
2007-02-15 10:55
zhangjingqiang 閱讀(321) |
評論 (0)
|
編輯
收藏
基于Struts+Spring+Hibernate的Blog系統--配置
摘要: applicationContext.xml Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <? xml version="1.0" encoding="UTF-8" ?> 2 ...
閱讀全文
posted @
2007-02-15 10:43
zhangjingqiang 閱讀(566) |
評論 (0)
|
編輯
收藏
Struts+Spring+Hibernate集成簡單配置
applicationContext.xml
?1
<?
xml?version="1.0"?encoding="UTF-8"
?>
?2
<!
DOCTYPE?beans?PUBLIC?"-//SPRING//DTD?BEAN//EN"?"http://www.springframework.org/dtd/spring-beans.dtd"
>
?3
<
beans
>
?4
????
<
bean?
id
="dataSource"
?5
????????class
="org.apache.commons.dbcp.BasicDataSource"
>
?6
????????
<
property?
name
="driverClassName"
>
?7
????????????
<
value
>
com.mysql.jdbc.Driver
</
value
>
?8
????????
</
property
>
?9
????????
<
property?
name
="url"
>
10
????????????
<
value
>
jdbc:mysql://localhost:3306/j2ee
</
value
>
11
????????
</
property
>
12
????????
<
property?
name
="username"
>
13
????????????
<
value
>
root
</
value
>
14
????????
</
property
>
15
????
</
bean
>
16
????
<
bean?
id
="sessionFactory"
17
????????class
="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
>
18
????????
<
property?
name
="dataSource"
>
19
????????????
<
ref?
bean
="dataSource"
?
/>
20
????????
</
property
>
21
????????
<
property?
name
="hibernateProperties"
>
22
????????????
<
props
>
23
????????????????
<
prop?
key
="hibernate.dialect"
>
24
????????????????????org.hibernate.dialect.MySQLDialect
25
????????????????
</
prop
>
26
????????????
</
props
>
27
????????
</
property
>
28
????????
<
property?
name
="mappingResources"
>
29
????????????
<
list
>
30
????????????????
<
value
>
org/me/sshdemo/db/Usertable.hbm.xml
</
value
>
31
????????????
</
list
>
32
????????
</
property
>
33
????
</
bean
>
34
????
<
bean?
id
="UsertableDAO"
?class
="org.me.sshdemo.dao.UsertableDAO"
>
35
????????
<
property?
name
="sessionFactory"
>
36
????????????
<
ref?
bean
="sessionFactory"
?
/>
37
????????
</
property
>
38
????
</
bean
>
39
????
<
bean?
name
="/input"
?class
="org.me.sshdemo.action.InputAction"
40
????????abstract
="false"
?singleton
="false"
?lazy-init
="default"
41
????????autowire
="default"
?dependency-check
="default"
>
42
????????
<
property?
name
="usertableDao"
>
43
????????????
<
ref?
bean
="UsertableDAO"
?
/>
44
????????
</
property
>
45
????
</
bean
>
46
????
<
bean?
name
="/selectAllUsers"
47
????????class
="org.me.sshdemo.action.SelectAllUsersAction"
?abstract
="false"
48
????????singleton
="false"
?lazy-init
="default"
?autowire
="default"
49
????????dependency-check
="default"
>
50
????????
<
property?
name
="usertableDao"
>
51
????????????
<
ref?
bean
="UsertableDAO"
?
/>
52
????????
</
property
>
53
????
</
bean
>
54
</
beans
>
struts-config.xml
?1
<?
xml?version="1.0"?encoding="UTF-8"
?>
?2
<!
DOCTYPE?struts-config?PUBLIC?"-//Apache?Software?Foundation//DTD?Struts?Configuration?1.2//EN"?"http://struts.apache.org/dtds/struts-config_1_2.dtd"
>
?3
<
struts-config
>
?4
????
<
data-sources?
/>
?5
????
<
form-beans
>
?6
????????
<
form-bean?
name
="inputForm"
?type
="org.me.sshdemo.db.Usertable"
?
/>
?7
????
</
form-beans
>
?8
????
<
global-exceptions?
/>
?9
????
<
global-forwards?
/>
10
????
<
action-mappings
>
11
????????
<
action?
attribute
="inputForm"
?input
="/input.jsp"
12
????????????name
="inputForm"
?path
="/input"
?scope
="request"
13
????????????type
="org.springframework.web.struts.DelegatingActionProxy"
>
14
????????????
<
forward?
name
="selectAllUsers"
?path
="/selectAllUsers.do"
15
????????????????redirect
="true"
?
/>
16
????????
</
action
>
17
????????
<
action?
path
="/selectAllUsers"
18
????????????type
="org.springframework.web.struts.DelegatingActionProxy"
>
19
????????????
<
forward?
name
="output"
?path
="/output.jsp"
?redirect
="true"
?
/>
20
????????
</
action
>
21
????
</
action-mappings
>
22
????
<
message-resources?
parameter
="org.me.sshdemo.ApplicationResources"
?
/>
23
????
<
plug-in
24
????????
className
="org.springframework.web.struts.ContextLoaderPlugIn"
>
25
????????
<
set-property?
property
="contextConfigLocation"
26
????????????value
="/WEB-INF/applicationContext.xml"
?
/>
27
????
</
plug-in
>
28
</
struts-config
>
Usertable.hbm.xml
?1
<?
xml?version="1.0"?encoding="utf-8"
?>
?2
<!
DOCTYPE?hibernate-mapping?PUBLIC?"-//Hibernate/Hibernate?Mapping?DTD?3.0//EN"
?3
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
>
?4
<!--
?
?5
????Mapping?file?autogenerated?by?MyEclipse?-?Hibernate?Tools
?6
-->
?7
<
hibernate-mapping
>
?8
????
<
class?
name
="org.me.sshdemo.db.Usertable"
?table
="usertable"
>
?9
????????
<
id?
name
="userid"
?type
="java.lang.Integer"
>
10
????????????
<
column?
name
="userid"
?
/>
11
????????????
<
generator?
class
="native"
?
/>
12
????????
</
id
>
13
????????
<
property?
name
="username"
?type
="java.lang.String"
>
14
????????????
<
column?
name
="username"
?length
="20"
?
/>
15
????????
</
property
>
16
????????
<
property?
name
="userpwd"
?type
="java.lang.String"
>
17
????????????
<
column?
name
="userpwd"
?length
="20"
?
/>
18
????????
</
property
>
19
????
</
class
>
20
</
hibernate-mapping
>
完整程序:http://zhangjingqiang.javaeye.com/blog/51798
posted @
2007-02-05 10:49
zhangjingqiang 閱讀(1386) |
評論 (0)
|
編輯
收藏
Copyright ©2025 zhangjingqiang Powered by:
博客園
模板提供:
滬江博客
<
2007年2月
>
日
一
二
三
四
五
六
28
29
30
31
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
1
2
3
4
5
6
7
8
9
10
常用鏈接
我的隨筆
我的評論
我的參與
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆分類
Ajax(1)
Hibernate(4)
iBATIS(1)
Spring(5)
Struts(2)
WebWork(1)
隨筆檔案
2007年2月 (5)
收藏夾
技術博客(1)
友情鏈接
搜索
積分與排名
積分 - 3689
排名 - 3384
最新評論
閱讀排行榜
1.?Struts+Spring+Hibernate集成簡單配置(1386)
2.?基于Ajax+Spring+Hibernate的用戶管理系統--配置(697)
3.?基于Spring+WebWork+iBATIS的游戲裝備交易系統--配置(667)
4.?基于Struts+Spring+Hibernate的Blog系統--配置(566)
5.?基于Spring+Hibernate的網上廣告管理系統--配置(321)
評論排行榜
1.?基于Ajax+Spring+Hibernate的用戶管理系統--配置(0)
2.?基于Spring+WebWork+iBATIS的游戲裝備交易系統--配置(0)
3.?基于Spring+Hibernate的網上廣告管理系統--配置(0)
4.?基于Struts+Spring+Hibernate的Blog系統--配置(0)
5.?Struts+Spring+Hibernate集成簡單配置(0)
主站蜘蛛池模板:
亚洲成AV人片高潮喷水
|
亚洲午夜久久久影院
|
亚洲精品线在线观看
|
污污视频网站免费观看
|
女人被男人桶得好爽免费视频
|
亚洲影院在线观看
|
成人无码精品1区2区3区免费看
|
国产免费资源高清小视频在线观看
|
亚洲第一永久在线观看
|
精品免费tv久久久久久久
|
亚洲视频在线一区二区
|
jzzijzzij在线观看亚洲熟妇
|
中字幕视频在线永久在线观看免费
|
免费的黄色的网站
|
日本免费一区二区三区最新vr
|
亚洲AV综合色区无码二区爱AV
|
亚洲一区二区免费视频
|
久久精品国产亚洲AV无码娇色
|
中文字幕免费不卡二区
|
亚洲国产精品无码久久久不卡
|
三年片在线观看免费观看大全动漫
|
亚洲AV无码不卡在线观看下载
|
三年片在线观看免费西瓜视频
|
亚洲成网777777国产精品
|
立即播放免费毛片一级
|
夜色阁亚洲一区二区三区
|
特级毛片全部免费播放a一级
|
一级毛片完整版免费播放一区
|
国产啪精品视频网站免费尤物
|
亚洲Av无码国产情品久久
|
中文字幕在线免费视频
|
在线日韩日本国产亚洲
|
在线人成免费视频69国产
|
亚洲人成网址在线观看
|
成人免费视频试看120秒
|
性生大片视频免费观看一级
|
亚洲国产精品自在在线观看
|
永久免费观看的毛片的网站
|
成人性生交大片免费看好
|
亚洲一级在线观看
|
黑人大战亚洲人精品一区
|