#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:
maryarm 2019-07-30 09:49:08 +04:30 committed by Josh Cummings
parent d9a20d1764
commit 627fb4f1d1
13 changed files with 19 additions and 36 deletions

View File

@ -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

View File

@ -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;

View File

@ -1,4 +1,4 @@
package com.baeldung.properties.configs;
package com.baeldung.properties.reloading.configs;
public class PropertiesException extends RuntimeException {
public PropertiesException() {

View File

@ -1,4 +1,4 @@
package com.baeldung.properties.configs;
package com.baeldung.properties.reloading.configs;
import java.io.FileReader;
import java.io.IOException;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,4 +1,4 @@
package com.baeldung.properties.beans;
package com.baeldung.properties.reloading.beans;
public class ValueRefreshConfigBean {
private String color;