Spring中配置DataSource的六种方式

https://www.cnblogs.com/wyb628/p/6568361.html

最简单的<context:property-placeholder location="classpath:jdbc.properties"/> 

jdbc.driverClassName=com.mysql.jdbc.Driver

jdbc.url=jdbc:mysql://localhost:3306/test

jdbc.username=root 

jdbc.password=root

 

posted @ 2018-07-19 21:36  老豆芽  阅读(264)  评论(0)    收藏  举报