#BAEL-2888: Reloading Properties Files in Spring (#7427)
-change package name to "com.baeldung.properties.reloading" -remove module 's ".gitignore"
This commit is contained in:
parent
d9a20d1764
commit
627fb4f1d1
|
@ -1,17 +0,0 @@
|
|||
*.class
|
||||
|
||||
#folders#
|
||||
/target
|
||||
/neoDb*
|
||||
/data
|
||||
/src/main/webapp/WEB-INF/classes
|
||||
*/META-INF/*
|
||||
|
||||
# Packaged files #
|
||||
*.jar
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
*.ipr
|
||||
*.iml
|
||||
*.iws
|
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.properties;
|
||||
package com.baeldung.properties.reloading;
|
||||
|
||||
import com.baeldung.properties.configs.ReloadableProperties;
|
||||
import com.baeldung.properties.reloading.configs.ReloadableProperties;
|
||||
import java.io.File;
|
||||
import java.util.Properties;
|
||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.configs;
|
||||
package com.baeldung.properties.reloading.configs;
|
||||
|
||||
public class PropertiesException extends RuntimeException {
|
||||
public PropertiesException() {
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.configs;
|
||||
package com.baeldung.properties.reloading.configs;
|
||||
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.configs;
|
||||
package com.baeldung.properties.reloading.configs;
|
||||
|
||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||
import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.configs;
|
||||
package com.baeldung.properties.reloading.configs;
|
||||
|
||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.configs;
|
||||
package com.baeldung.properties.reloading.configs;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.springframework.core.env.PropertySource;
|
|
@ -1,9 +1,9 @@
|
|||
package com.baeldung.properties;
|
||||
package com.baeldung.properties.reloading;
|
||||
|
||||
import com.baeldung.properties.beans.ConfigurationPropertiesRefreshConfigBean;
|
||||
import com.baeldung.properties.beans.EnvironmentConfigBean;
|
||||
import com.baeldung.properties.beans.PropertiesConfigBean;
|
||||
import com.baeldung.properties.beans.ValueRefreshConfigBean;
|
||||
import com.baeldung.properties.reloading.beans.ConfigurationPropertiesRefreshConfigBean;
|
||||
import com.baeldung.properties.reloading.beans.EnvironmentConfigBean;
|
||||
import com.baeldung.properties.reloading.beans.PropertiesConfigBean;
|
||||
import com.baeldung.properties.reloading.beans.ValueRefreshConfigBean;
|
||||
import java.io.FileOutputStream;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.properties;
|
||||
package com.baeldung.properties.reloading;
|
||||
|
||||
import com.baeldung.properties.beans.ValueRefreshConfigBean;
|
||||
import com.baeldung.properties.reloading.beans.ValueRefreshConfigBean;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.beans;
|
||||
package com.baeldung.properties.reloading.beans;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.properties.beans;
|
||||
package com.baeldung.properties.reloading.beans;
|
||||
|
||||
import com.baeldung.properties.configs.ReloadablePropertySourceFactory;
|
||||
import com.baeldung.properties.reloading.configs.ReloadablePropertySourceFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.core.env.Environment;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.beans;
|
||||
package com.baeldung.properties.reloading.beans;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.properties.beans;
|
||||
package com.baeldung.properties.reloading.beans;
|
||||
|
||||
public class ValueRefreshConfigBean {
|
||||
private String color;
|
Loading…
Reference in New Issue