多个properties配置文件,导致冲突。

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

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

导致会读不l东西,会出现说没有这个键

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

这个样就行了

posted @ 2016-07-26 14:50  树下野鹿  阅读(415)  评论(0编辑  收藏  举报