Das aktive Spring-Profil funktioniert nach dem Upgrade auf SB 3.4.0 nicht

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Das aktive Spring-Profil funktioniert nach dem Upgrade auf SB 3.4.0 nicht

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.

Top