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

org.smallmind.foundation.foundation.xml Maven / Gradle / Ivy

There is a newer version: 5.9.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

  <bean class="org.smallmind.nutsnbolts.spring.SystemPropertyInitializingBean">
    <property name="order" value="1"/>
    <property name="propertyMap">
      <map>
        <entry key="SMALLMIND_ENVIRONMENT" value="de"/>
        <entry key="SMALLMIND_DATABASE" value="mysql"/>
        <entry key="SMALLMIND_MODULE" value="foundation"/>
        <entry key="SMALLMIND_PRODUCT" value="any"/>
      </map>
    </property>
  </bean>

  <bean id="allProperties" class="org.smallmind.nutsnbolts.spring.PropertyPlaceholderConfigurer">
    <property name="order" value="3"/>
    <property name="ignoreResourceNotFound" value="true"/>
    <property name="ignoreUnresolvableProperties" value="false"/>
    <property name="systemPropertyMode" value="OVERRIDE"/>
    <property name="searchSystemEnvironment" value="true"/>
    <property name="locations">
      <list>
        <value>classpath:org/smallmind/foundation/global.properties</value>
        <value>classpath:org/smallmind/foundation/database-${SMALLMIND_DATABASE}.properties</value>
        <value>classpath:org/smallmind/foundation/${SMALLMIND_ENVIRONMENT}/environment.properties</value>
        <value>classpath:org/smallmind/foundation/${SMALLMIND_ENVIRONMENT}/database-${SMALLMIND_DATABASE}.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/application.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/database-${SMALLMIND_DATABASE}.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_ENVIRONMENT}/application.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_ENVIRONMENT}/database-${SMALLMIND_DATABASE}.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_PRODUCT}/application.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_PRODUCT}/database-${SMALLMIND_DATABASE}.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_PRODUCT}/${SMALLMIND_ENVIRONMENT}/application.properties</value>
        <value>classpath:org/smallmind/${SMALLMIND_MODULE}/${SMALLMIND_PRODUCT}/${SMALLMIND_ENVIRONMENT}/database-${SMALLMIND_DATABASE}.properties</value>
        <value>file:${user.home}/.m2/local.properties</value>
      </list>
    </property>
  </bean>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy