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.
1 parent c85509d commit 9f1c796Copy full SHA for 9f1c796
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