BAEL-2569 move code to spring-boot-ops module

This commit is contained in:
Matt Zhang 2019-04-07 22:42:15 +10:00
parent 789505d769
commit f5ac80e332
10 changed files with 7 additions and 6 deletions

View File

@ -35,7 +35,7 @@ public class PriceCalculationApplication implements CommandLineRunner {
int quantity = Integer.valueOf(params.get(1));
priceCalculationService.productTotalPrice(singlePrice, quantity);
} else {
logger.error("Invalid arguments " + params.toString());
logger.warn("Invalid arguments " + params.toString());
}
}

View File

@ -0,0 +1,6 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
org.springframework.boot.env.EnvironmentPostProcessor=\
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor

View File

@ -1,7 +1,2 @@
org.springframework.boot.diagnostics.FailureAnalyzer=com.baeldung.failureanalyzer.MyBeanNotOfRequiredTypeFailureAnalyzer
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
org.springframework.boot.env.EnvironmentPostProcessor=\
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor