<context:property-placeholder location=""/>标签,可以用来加载properties配置文件

 

<context:property-placeholder location="classpath:config/db.properties"/>

spring通过xml方式加载properties文件

 

 




db.user=root
db.password=111111
db.driver=com.mysql.cj.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/testlogin?serverTimezone=GMT%2B8
 

相关文章:

  • 2021-12-22
  • 2021-12-18
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-07-17
相关资源
相似解决方案