`
dannyhz
  • 浏览: 373921 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

spring 配置文件的安排 包括linux和windows和本地

 
阅读更多
引用


<bean id="propertyConfigurer" class="com.sunrun.mpos.common.core.PropertiesHolder" init-method="initPropertiesHolder">
  <property name="osName" value="#{systemProperties['os.name']}"/>
<property name="envs">
<map>
<entry key="windows" value="classpath:config/console-config.properties"/>
<entry key="linux" value="file:/etc/_CONFIG/console/config.properties"/>
</map>
</property>
         <property name="locals">
            <list>
                <value>classpath:config/config.properties</value>
                <value>classpath:config/jdbc-config.properties</value>
            </list>
        </property>       
    </bean>


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics