spring使用外部properties的数据库资源

<context:component-scan base-package="cn.com.sise.jdbc"></context:component-scan>
<!-- 导入资源文件 -->
<context:property-placeholder location="classpath:jdbc.properties"/>

 

欢迎大家关注我的微信公众号,获取你不知道的宝藏。

posted @ 2019-05-11 16:03  代码改变我的世界  阅读(152)  评论(0编辑  收藏  举报