by Guest » 03 Jan 2025, 13:47
Ich habe dies in meiner application.yml:
Code: Select all
spring:
application:
name: my-app
profiles:
active: dev
und Folgendes in application-dev.yml:
Code: Select all
some-other-service:
host: https://test.com
Aber die Konfiguration wird nicht gefunden, wenn ich mvn clean install ausführe oder mit mvn clean install -Dspring.active.profiles=dev (contextLoads-Test schlägt fehl)
Es funktioniert, wenn ich die Konfiguration zu application.yml hinzufüge, das Problem scheint also darin zu liegen, dass das Profil nicht festgelegt ist.
Dies funktionierte beim Upgrade auf Spring Boot nicht mehr 3.4.0. Gibt es hier bekannte Änderungen? Konnte es nicht in den Versionshinweisen finden.
Ich habe dies in meiner application.yml:
[code]spring:
application:
name: my-app
profiles:
active: dev
[/code]
und Folgendes in application-dev.yml:
[code]some-other-service:
host: https://test.com
[/code]
Aber die Konfiguration wird nicht gefunden, wenn ich mvn clean install ausführe oder mit mvn clean install -Dspring.active.profiles=dev (contextLoads-Test schlägt fehl)
Es funktioniert, wenn ich die Konfiguration zu application.yml hinzufüge, das Problem scheint also darin zu liegen, dass das Profil nicht festgelegt ist.
Dies funktionierte beim Upgrade auf Spring Boot nicht mehr 3.4.0. Gibt es hier bekannte Änderungen? Konnte es nicht in den Versionshinweisen finden.