一個菜鳥學java的地兒
一個菜鳥的問題總是很多,又很是白癡;而一個臉皮兒薄的菜鳥有問題更是麻煩,想問又扭捏!不過好好想想,要臉有啥子用?能掙錢買上三瓜兩棗添肚子才是真格地!這樣,菜鳥就不再是一個普通的菜鳥,而是一個合格的、符合組織上要求的好菜鳥! 上火了怎么辦?找個地方yy一下就好了。
首頁
新隨筆
聯系
聚合
管理
隨筆-42 評論-42 文章-0 trackbacks-0
學習 Spring -- beans.xml 文件的創建
beans.xml
<?
xml version="1.0" encoding="UTF-8"
?>
<
beans
xmlns
="http://www.springframework.org/schema/beans"
xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx
="http://www.springframework.org/schema/tx"
xsi:schemaLocation
="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
>
<
bean
id
="dataSource"
class
="org.apache.commons.dbcp.BasicDataSource"
>
<
property
name
="driverClassName"
value
="oracle.jdbc.driver.OracleDriver"
/>
<
property
name
="url"
value
="jdbc:oracle:thin:@localhost:1521:orcl"
/>
<
property
name
="username"
value
="yiqi"
/>
<
property
name
="password"
value
="yiqi"
/>
</
bean
>
<
bean
id
="sessionFactory"
class
="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
>
<
property
name
="dataSource"
ref
="dataSource"
/>
<
property
name
="hibernateProperties"
>
<
props
>
<
prop
key
="hibernate.dialect"
>
org.hibernate.dialect.Oracle10gDialect
</
prop
>
<
prop
key
="hibernate.show_sql"
>
true
</
prop
>
<
prop
key
="hibernate.jdbc.batch_size"
>
1
</
prop
>
<
prop
key
="hibernate.hbm2ddl.auto"
>
create
</
prop
>
</
props
>
</
property
>
<
property
name
="annotatedClasses"
>
<
list
>
<
value
>
com.exercise.hibernate.EnglishUser
</
value
>
</
list
>
</
property
>
</
bean
>
<
bean
id
="transactionManager"
class
="org.springframework.orm.hibernate3.HibernateTransactionManager"
>
<
property
name
="dataSource"
ref
="dataSource"
/>
<
property
name
="sessionFactory"
ref
="sessionFactory"
/>
</
bean
>
<
tx:annotation-driven
/>
<
bean
id
="EnglishUserDAO"
class
="com.exercise.hibernate.EnglishUserDAOImpl"
>
<
property
name
="sessionFactory"
ref
="sessionFactory"
/>
</
bean
>
</
beans
>
posted on 2008-03-16 23:30
BlueSunshine
閱讀(5369)
評論(1)
編輯
收藏
所屬分類:
學習心得
評論:
#
re: 學習 Spring -- beans.xml 文件的創建[未登錄]
2015-04-17 19:31 |
哈哈
煩煩煩
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
做項目備選
Head First Java
生成 Excel文件
學習集合與泛型
第一次使用復選框
Controller文件中的return結果:想加增加,而不是要跳轉,怎么做?
同類型數組a,b, a為b的子集,求出a的補集
學著用Filter
學習JSP(二)--JSP
學習 JSP(一)--Servlet
<
2008年3月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
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
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆分類
個人日記(5)
參考資料(4)
學習心得(21)
隨筆檔案
2011年11月 (1)
2010年11月 (1)
2010年2月 (1)
2009年10月 (1)
2008年8月 (2)
2008年7月 (5)
2008年6月 (8)
2008年5月 (1)
2008年4月 (1)
2008年3月 (3)
2007年11月 (1)
2007年5月 (4)
我的好友
BlogJava首頁
老公的博客
搜索
最新評論
1.?re: 學習 Spring -- beans.xml 文件的創建[未登錄]
煩煩煩
--哈哈
2.?編寫程序,實現集合的子集判定,即如果A是B的子集則返回真,否則返回假。集合用棧實現,要求只能用棧的基本操作,不能通過下標遍歷棧中的元素。集合元素可限定為整型。如果需要,可使用普通變量或另外的棧輔助。
。。。。
--李志雄
3.?re: 安eclipse用到的環境變量JAVA_HOME和PATH
因為有了 tomcat 所以 eclipse 知道了 localhost 可以用。
--BlueSunshine
4.?re: 安eclipse用到的環境變量JAVA_HOME和PATH
如果在安裝 eclipse 時沒有裝 tomcat ,可以再 project 里面直接引用 tomcat ,就是加入 tomcat 的包。不然就會發現 servlet 這類文件全部紅了。
--BlueSunshine
5.?re: 學習集合與泛型
@BlueSunshine
前輩
<? extends T> :表示必須是T或者T的父型
怎么不是子型
--初學生
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 BlueSunshine
主站蜘蛛池模板:
重庆市
|
同仁县
|
济阳县
|
瓮安县
|
贵阳市
|
玉龙
|
合江县
|
乃东县
|
华池县
|
和林格尔县
|
商都县
|
衡阳县
|
北碚区
|
班戈县
|
凯里市
|
蕉岭县
|
乌什县
|
张家川
|
澄江县
|
高淳县
|
手机
|
江永县
|
新沂市
|
和田县
|
天长市
|
北辰区
|
西峡县
|
金平
|
福建省
|
揭东县
|
栾城县
|
柘荣县
|
定结县
|
紫云
|
汤原县
|
衢州市
|
保靖县
|
营山县
|
大荔县
|
息烽县
|
三穗县
|