spring项目如何使用properties文件,配置信息

spring配置文件中使用

<context:property-placeholder location="classpath:配置文件名"/>扫描配置文件。
使用语法:${key}

posted @ 2021-10-27 16:45  wbnsyw  阅读(84)  评论(0)    收藏  举报