package net.safedata.springboot.training.d01.s05.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * A Spring configuration which loads a properties file
 *
 * @author bogdan.solga
 */
@Configuration
@ComponentScan(basePackages = "net.safedata.springboot.training.d01.s05")
@PropertySource(value = "application.properties")
@PropertySource(value = "file:${user.home}/an-external-file.properties")
public class PropertiesLoadingConfig {
}

@@ -439,16 +439,26 @@
 (value =
+ %7B%0A       
  %22applic
@@ -478,33 +478,17 @@
 ies%22
-)%0A@PropertySource(value =
+,%0A       
  %22fi
@@ -531,16 +531,18 @@
 perties%22
+%0A%7D
 )%0Apublic

Use a single PropertySource