您的位置:首页 > 编程语言 > Java开发

关于spring 的那些事

2016-09-28 12:45 232 查看
一. spring 相关的坑    1.  <context:property-placeholderlocation="classpath:db.properties"/>  只能配置一个,如何配置多个,后面的properties会被spring 忽略。正确的做法是:  
<context:property-placeholder location="classpath:*.properties" />
用* 代替所以配置文件。

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: