<context:property-placeholder location=""/>标签,可以用来加载properties配置文件
<context:property-placeholder location="classpath:config/db.properties"/>
![](https://img2018.cnblogs.com/i-beta/1772287/201911/1772287-20191115232226990-1230777954.png)
db.user=root
db.password=111111
db.driver=com.mysql.cj.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/testlogin?serverTimezone=GMT%2B8