[BAEL-15990] - Moved org.baeldung to com.baeldung
This commit is contained in:
parent
574f0c2bd6
commit
527e4aa41c
|
@ -1 +1 @@
|
||||||
application.theme.color=blue
|
application.theme.color=red
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.core;
|
package com.baeldung.properties.core;
|
||||||
|
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.core;
|
package com.baeldung.properties.core;
|
||||||
|
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.ImportResource;
|
import org.springframework.context.annotation.ImportResource;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.spring;
|
package com.baeldung.properties.spring;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.spring;
|
package com.baeldung.properties.spring;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.spring;
|
package com.baeldung.properties.spring;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.spring;
|
package com.baeldung.properties.spring;
|
||||||
|
|
||||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
|
@ -1,3 +1,4 @@
|
||||||
management.endpoints.web.exposure.include=refresh
|
management.endpoints.web.exposure.include=refresh
|
||||||
spring.properties.refreshDelay=1000
|
spring.properties.refreshDelay=1000
|
||||||
spring.config.location=file:extra.properties
|
spring.config.location=file:extra.properties
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<context:property-placeholder location="classpath:foo.properties,classpath:bar.properties"/>
|
<context:property-placeholder location="classpath:foo.properties,classpath:bar.properties"/>
|
||||||
|
|
||||||
<bean id="componentInXmlUsingProperties" class="org.baeldung.properties.core.ComponentInXmlUsingProperties">
|
<bean id="componentInXmlUsingProperties" class="com.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||||
<constructor-arg value="${key.something}"/>
|
<constructor-arg value="${key.something}"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<context:property-placeholder location="classpath:foo.properties" ignore-unresolvable="true" order="1"/>
|
<context:property-placeholder location="classpath:foo.properties" ignore-unresolvable="true" order="1"/>
|
||||||
|
|
||||||
<bean id="componentInXmlUsingProperties" class="org.baeldung.properties.core.ComponentInXmlUsingProperties">
|
<bean id="componentInXmlUsingProperties" class="com.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||||
<constructor-arg value="${key.something2}"/>
|
<constructor-arg value="${key.something2}"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package org.baeldung.properties.basic;
|
package com.baeldung.properties.basic;
|
||||||
|
|
||||||
import org.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -10,6 +9,8 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
public class BasicPropertiesWithJavaIntegrationTest {
|
public class BasicPropertiesWithJavaIntegrationTest {
|
|
@ -1,7 +1,5 @@
|
||||||
package org.baeldung.properties.basic;
|
package com.baeldung.properties.basic;
|
||||||
|
|
||||||
import org.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
|
||||||
import org.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -11,6 +9,9 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||||
|
import com.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
public class ExtendedPropertiesWithJavaIntegrationTest {
|
public class ExtendedPropertiesWithJavaIntegrationTest {
|
|
@ -1,6 +1,5 @@
|
||||||
package org.baeldung.properties.basic;
|
package com.baeldung.properties.basic;
|
||||||
|
|
||||||
import org.baeldung.properties.spring.PropertiesWithJavaConfig;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -10,6 +9,8 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { PropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { PropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
public class PropertiesWithJavaIntegrationTest {
|
public class PropertiesWithJavaIntegrationTest {
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.basic;
|
package com.baeldung.properties.basic;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.basic;
|
package com.baeldung.properties.basic;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
|
@ -1,6 +1,5 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
@ -11,6 +10,9 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithJavaConfig;
|
||||||
|
import com.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { ExternalPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { ExternalPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
@Ignore("manual only")
|
@Ignore("manual only")
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -10,6 +10,9 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfigOne;
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfigTwo;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfigOne.class, ExternalPropertiesWithXmlConfigTwo.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfigOne.class, ExternalPropertiesWithXmlConfigTwo.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
@Ignore("manual only")
|
@Ignore("manual only")
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.external;
|
package com.baeldung.properties.external;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -10,6 +10,8 @@ import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||||
|
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfig;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfig.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
@Ignore("manual only")
|
@Ignore("manual only")
|
|
@ -1,10 +1,11 @@
|
||||||
package org.baeldung.properties.multiple;
|
package com.baeldung.properties.multiple;
|
||||||
|
|
||||||
import org.baeldung.properties.spring.PropertiesWithJavaConfig;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||||
|
|
||||||
|
import com.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
@SpringJUnitConfig(PropertiesWithJavaConfig.class)
|
@SpringJUnitConfig(PropertiesWithJavaConfig.class)
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.multiple;
|
package com.baeldung.properties.multiple;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.parentchild;
|
package com.baeldung.properties.parentchild;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
|
@ -1,10 +1,8 @@
|
||||||
package org.baeldung.properties.parentchild;
|
package com.baeldung.properties.parentchild;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.config.ChildConfig2;
|
|
||||||
import org.baeldung.properties.parentchild.config.ParentConfig2;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -15,6 +13,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.web.WebAppConfiguration;
|
import org.springframework.test.context.web.WebAppConfiguration;
|
||||||
import org.springframework.web.context.WebApplicationContext;
|
import org.springframework.web.context.WebApplicationContext;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.config.ChildConfig2;
|
||||||
|
import com.baeldung.properties.parentchild.config.ParentConfig2;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig2.class), @ContextConfiguration(classes = ChildConfig2.class) })
|
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig2.class), @ContextConfiguration(classes = ChildConfig2.class) })
|
|
@ -1,10 +1,8 @@
|
||||||
package org.baeldung.properties.parentchild;
|
package com.baeldung.properties.parentchild;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.config.ChildConfig;
|
|
||||||
import org.baeldung.properties.parentchild.config.ParentConfig;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -15,6 +13,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.test.context.web.WebAppConfiguration;
|
import org.springframework.test.context.web.WebAppConfiguration;
|
||||||
import org.springframework.web.context.WebApplicationContext;
|
import org.springframework.web.context.WebApplicationContext;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.config.ChildConfig;
|
||||||
|
import com.baeldung.properties.parentchild.config.ParentConfig;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class), @ContextConfiguration(classes = ChildConfig.class) })
|
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class), @ContextConfiguration(classes = ChildConfig.class) })
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.properties.parentchild;
|
package com.baeldung.properties.parentchild;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
|
@ -1,11 +1,12 @@
|
||||||
package org.baeldung.properties.parentchild.config;
|
package com.baeldung.properties.parentchild.config;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.ChildValueHolder;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
||||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.ChildValueHolder;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@PropertySource("classpath:child.properties")
|
@PropertySource("classpath:child.properties")
|
||||||
public class ChildConfig {
|
public class ChildConfig {
|
|
@ -1,11 +1,12 @@
|
||||||
package org.baeldung.properties.parentchild.config;
|
package com.baeldung.properties.parentchild.config;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.ChildValueHolder;
|
|
||||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.ChildValueHolder;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
public class ChildConfig2 {
|
public class ChildConfig2 {
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
package org.baeldung.properties.parentchild.config;
|
package com.baeldung.properties.parentchild.config;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.ParentValueHolder;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
||||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.ParentValueHolder;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@PropertySource("classpath:parent.properties")
|
@PropertySource("classpath:parent.properties")
|
||||||
public class ParentConfig {
|
public class ParentConfig {
|
|
@ -1,11 +1,12 @@
|
||||||
package org.baeldung.properties.parentchild.config;
|
package com.baeldung.properties.parentchild.config;
|
||||||
|
|
||||||
import org.baeldung.properties.parentchild.ParentValueHolder;
|
|
||||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
|
import com.baeldung.properties.parentchild.ParentValueHolder;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
public class ParentConfig2 {
|
public class ParentConfig2 {
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
package org.baeldung.test;
|
package com.baeldung.test;
|
||||||
|
|
||||||
import org.baeldung.properties.basic.ExtendedPropertiesWithJavaIntegrationTest;
|
|
||||||
import org.baeldung.properties.basic.PropertiesWithMultipleXmlsIntegrationTest;
|
|
||||||
import org.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithXmlManualTest;
|
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Suite;
|
import org.junit.runners.Suite;
|
||||||
import org.junit.runners.Suite.SuiteClasses;
|
import org.junit.runners.Suite.SuiteClasses;
|
||||||
|
|
||||||
|
import com.baeldung.properties.basic.ExtendedPropertiesWithJavaIntegrationTest;
|
||||||
|
import com.baeldung.properties.basic.PropertiesWithMultipleXmlsIntegrationTest;
|
||||||
|
import com.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
||||||
|
import com.baeldung.properties.external.ExternalPropertiesWithXmlManualTest;
|
||||||
|
|
||||||
@RunWith(Suite.class)
|
@RunWith(Suite.class)
|
||||||
@SuiteClasses({ //@formatter:off
|
@SuiteClasses({ //@formatter:off
|
||||||
PropertiesWithXmlIntegrationTest.class,
|
PropertiesWithXmlIntegrationTest.class,
|
|
@ -1,3 +1,4 @@
|
||||||
management.endpoints.web.exposure.include=refresh
|
management.endpoints.web.exposure.include=refresh
|
||||||
spring.properties.refreshDelay=1000
|
spring.properties.refreshDelay=1000
|
||||||
spring.config.location=file:extra.properties
|
spring.config.location=file:extra.properties
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
Loading…
Reference in New Issue