Skip to content

Commit 967e0c0

Browse files
committed
APPENG-1097: Set environment post processor to highest precedence
1 parent a1a7d23 commit 967e0c0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.2] - 2025-02-26
9+
10+
### Changed
11+
- Changed `WiseEnvironmentEnvironmentPostProcessor` from lowest to highest precedence.
12+
813
## [0.1.1] - 2024-12-09
914

1015
### Changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.1.1
1+
version=0.1.2

wise-environment-starter/src/main/java/com/wise/common/environment/WiseEnvironmentEnvironmentPostProcessor.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
import org.springframework.boot.SpringApplication;
77
import org.springframework.boot.env.EnvironmentPostProcessor;
88
import org.springframework.boot.logging.DeferredLogFactory;
9-
import org.springframework.core.annotation.Order;
9+
import org.springframework.core.Ordered;
1010
import org.springframework.core.env.ConfigurableEnvironment;
1111

1212
@Slf4j
13-
@Order
14-
public class WiseEnvironmentEnvironmentPostProcessor implements EnvironmentPostProcessor {
13+
public class WiseEnvironmentEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
1514

1615
private final Log log;
1716

@@ -42,4 +41,8 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
4241
environment.getPropertySources().addLast(new WiseEnvironmentDefaultsPropertySource());
4342
}
4443

44+
@Override
45+
public int getOrder() {
46+
return Ordered.HIGHEST_PRECEDENCE;
47+
}
4548
}

0 commit comments

Comments
 (0)