Spring中<context:property-placeholder>标签遇到的问题
context:property-placeholder标签
context:property-placeholder标签,提供了将spring.xml配置文件中一些配置数据提取成properties文件的能力,它能让程序员将一些信息(例如数据库链接信息)统一写在properties文件中,然后再在Spring.xml引入这些数据。
db.properties文件:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/exam
usern
原创
2021-04-25 00:34:08 ·
781 阅读 ·
0 评论