1.applicationContext.xml

我們采用讀取文件的形式來取的連接池的屬性
2.db.properties

注意配置的前面要加上jdbc,方便配置連接池的調(diào)用
必選配置是從hibernate.cfg.xml中抄過來的。
在具體的bean中使用c3p0連接池

image.png
測試類跟上面一樣
1.applicationContext.xml
2.db.properties
必選配置是從hibernate.cfg.xml中抄過來的。
在具體的bean中使用c3p0連接池
測試類跟上面一樣