zhangjingqiang's Blog
BlogJava
首頁
新隨筆
新文章
聯(lián)系
聚合
管理
posts - 5, comments - 0, trackbacks - 0
2007年2月5日
基于Ajax+Spring+Hibernate的用戶管理系統(tǒng)--配置
摘要: 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 閱讀(704) |
評論 (0)
|
編輯
收藏
基于Spring+WebWork+iBATIS的游戲裝備交易系統(tǒng)--配置
摘要: 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 閱讀(680) |
評論 (0)
|
編輯
收藏
基于Spring+Hibernate的網(wǎng)上廣告管理系統(tǒng)--配置
摘要: 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 閱讀(330) |
評論 (0)
|
編輯
收藏
基于Struts+Spring+Hibernate的Blog系統(tǒng)--配置
摘要: 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 閱讀(574) |
評論 (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 閱讀(1395) |
評論 (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)
收藏夾
技術(shù)博客(1)
友情鏈接
搜索
積分與排名
積分 - 3735
排名 - 3382
最新評論
閱讀排行榜
1.?Struts+Spring+Hibernate集成簡單配置(1395)
2.?基于Ajax+Spring+Hibernate的用戶管理系統(tǒng)--配置(704)
3.?基于Spring+WebWork+iBATIS的游戲裝備交易系統(tǒng)--配置(680)
4.?基于Struts+Spring+Hibernate的Blog系統(tǒng)--配置(574)
5.?基于Spring+Hibernate的網(wǎng)上廣告管理系統(tǒng)--配置(330)
評論排行榜
1.?基于Ajax+Spring+Hibernate的用戶管理系統(tǒng)--配置(0)
2.?基于Spring+WebWork+iBATIS的游戲裝備交易系統(tǒng)--配置(0)
3.?基于Spring+Hibernate的網(wǎng)上廣告管理系統(tǒng)--配置(0)
4.?基于Struts+Spring+Hibernate的Blog系統(tǒng)--配置(0)
5.?Struts+Spring+Hibernate集成簡單配置(0)
主站蜘蛛池模板:
极品色天使在线婷婷天堂亚洲
|
亚洲av日韩av高潮潮喷无码
|
亚洲国产精品成人综合久久久
|
中文字幕无码免费久久
|
中文字幕亚洲一区二区va在线
|
337p日本欧洲亚洲大胆人人
|
免费的涩涩视频在线播放
|
亚洲日本乱码卡2卡3卡新区
|
成人AV免费网址在线观看
|
一级成人a做片免费
|
亚洲第一区精品观看
|
黄网站色成年片大免费高清
|
四虎国产精品免费视
|
亚洲av日韩av无码黑人
|
国产精品免费看久久久
|
亚洲AV成人片色在线观看高潮
|
99国产精品免费视频观看
|
亚洲网红精品大秀在线观看
|
精品香蕉在线观看免费
|
亚洲日本中文字幕天天更新
|
国产乱人免费视频
|
国产成人高清精品免费观看
|
国产精品国产亚洲精品看不卡
|
久久国产免费一区
|
亚洲国产日韩在线人成下载
|
成人毛片免费网站
|
日韩大片免费观看视频播放
|
精品国产_亚洲人成在线高清
|
综合自拍亚洲综合图不卡区
|
免费人成在线观看69式小视频
|
亚洲AV男人的天堂在线观看
|
又粗又硬又黄又爽的免费视频
|
久久亚洲精品无码网站
|
亚洲综合亚洲综合网成人
|
久久精品毛片免费观看
|
亚洲av无码日韩av无码网站冲
|
国产日产亚洲系列最新
|
国产成人精品免费视
|
一级毛片人与动免费观看
|
亚洲精品福利在线观看
|
www.亚洲精品.com
|