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

spring 加载参数配置文件时,文件路径是个list的处理方法

2020-02-13 01:13 549 查看
[code]<!-- spring 加载参数配置文件 -->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="fileEncoding" value="UTF-8"/>
<property name="locations">
<list>
<value>classpath:properties/config/shopping-mall.properties</value>
</list>
</property>
</bean>

<list>
                <value>classpath:properties/config/shopping-mall.properties</value>
</list>

  • 点赞
  • 收藏
  • 分享
  • 文章举报
hanhanhan2019 发布了26 篇原创文章 · 获赞 0 · 访问量 256 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: