Skip to content

Commit

Permalink
BAEL-2569 (#6679)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
letcodespeak authored and maibin committed Apr 7, 2019
1 parent 9ffec68 commit b9d34bf
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void run(String... args) throws Exception {
int quantity = Integer.valueOf(params.get(1));
priceCalculationService.productTotalPrice(singlePrice, quantity);
} else {
logger.error("Invalid arguments " + params.toString());
logger.warn("Invalid arguments " + params.toString());
}

}
Expand Down
6 changes: 6 additions & 0 deletions spring-boot-ops/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig

org.springframework.boot.env.EnvironmentPostProcessor=\
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor

5 changes: 0 additions & 5 deletions spring-boot/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b9d34bf

Please sign in to comment.