context.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context>
<!-- 
<Resource 
name="jdbc/eesy_mybatis"                        數據源的名稱
type="javax.sql.DataSource"                        數據源類型
auth="Container"                                數據源提供者
maxActive="20"                                    最大活動數
maxWait="10000"                                    最大等待時間
maxIdle="5"                                        最大空閒數
username="root"                                    用戶名
password="1234"                                    密碼
driverClassName="com.mysql.jdbc.Driver"            驅動類
url="jdbc:mysql://localhost:3306/eesy_mybatis"    連接url字符串
/>
 -->
<Resource 
name="jdbc/eesy_mybatis"
type="javax.sql.DataSource"
auth="Container"
maxActive="20"
maxWait="10000"
maxIdle="5"
username="root"
password="1234"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/eesy_mybatis"
/>
</Context>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章