Project

General

Profile

« Previous | Next » 

Revision 4019d661

Added by Andreas Kohlbecker over 6 years ago

bean loading priority

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/opt/config/DataSourceConfigurer.java
30 30
import org.springframework.beans.factory.xml.XmlBeanFactory;
31 31
import org.springframework.context.annotation.Bean;
32 32
import org.springframework.context.annotation.Configuration;
33
import org.springframework.context.annotation.Lazy;
33
import org.springframework.core.Ordered;
34
import org.springframework.core.annotation.Order;
34 35
import org.springframework.core.env.ConfigurableEnvironment;
35 36
import org.springframework.core.env.MutablePropertySources;
36 37
import org.springframework.core.env.PropertiesPropertySource;
......
151 152

  
152 153

  
153 154
    @Bean
154
    @Lazy(false)
155
    @Order(Ordered.HIGHEST_PRECEDENCE)
155 156
    public DataSource dataSource() {
156 157

  
157 158
        String beanName = findProperty(ATTRIBUTE_DATASOURCE_NAME, true);

Also available in: Unified diff