We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88aae52 + 9f1c796 commit d2c1dc3Copy full SHA for d2c1dc3
src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java
@@ -120,7 +120,7 @@ public static void main(String[] args) {
120
boolean hasExternalConfig = Files.exists(Paths.get(CONFIG_FILENAME))
121
|| System.getProperty("spring.config.location") != null
122
|| System.getenv("SPRING_CONFIG_LOCATION") != null
123
- || Arrays.asList(args).contains("--spring.config.location");
+ || Arrays.stream(args).anyMatch(s -> s.contains("--spring.config.location"));
124
125
if (!hasExternalConfig) {
126
app.setAdditionalProfiles(CONFIG_DEMO_PROFILE);
0 commit comments