BAEL-2569 (#6679)
* BAEL-2569 : EnvironmentPostProcessor in Spring Boot * BAEL-2569 add test * BAEL-2569 update test * BAEL-2569 refactoring the class PriceCalculationEnvironmentPostProcessor * BAEL-2569: changes to class PriceCalculationEnvironmentPostProcessor * BAEL-2569 move code to spring-boot-ops module
This commit is contained in:
parent
9ffec6819c
commit
b9d34bfc7a
@ -35,7 +35,7 @@ public class PriceCalculationApplication implements CommandLineRunner {
|
|||||||
int quantity = Integer.valueOf(params.get(1));
|
int quantity = Integer.valueOf(params.get(1));
|
||||||
priceCalculationService.productTotalPrice(singlePrice, quantity);
|
priceCalculationService.productTotalPrice(singlePrice, quantity);
|
||||||
} else {
|
} else {
|
||||||
logger.error("Invalid arguments " + params.toString());
|
logger.warn("Invalid arguments " + params.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||||
|
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
|
||||||
|
|
||||||
|
org.springframework.boot.env.EnvironmentPostProcessor=\
|
||||||
|
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor
|
||||||
|
|
@ -1,7 +1,2 @@
|
|||||||
org.springframework.boot.diagnostics.FailureAnalyzer=com.baeldung.failureanalyzer.MyBeanNotOfRequiredTypeFailureAnalyzer
|
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
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user