All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.spring-properties-context.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

    <!-- Beans for managing loading of runtime properties from application-default.properties and interproscan.properties -->

    <bean id="placeholderProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="properties" ref="defaultProperties"/>
        <!--<property name="location" value="classpath:batch-${ENVIRONMENT}.properties"/>-->

        <!-- Need to set the path of the properties file as a System property. -Dconfig=/path/to/my.propeties -->
        <!--<property name="location" value="file:${config}"/>-->
        <property name="locations">
            <list>
                <value>file:interproscan.properties</value>
                <value>file:\${user.home}/.interproscan-5/interproscan.properties</value>
                <value>file:\${system.interproscan.properties}</value>
            </list>
        </property>
        <property name="ignoreResourceNotFound" value="true"/>
        <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
        <property name="order" value="1"/>

    </bean>

    <util:properties id="defaultProperties" location="classpath:application-default.properties"/>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy