admin管理员组文章数量:1123142
As part of spring boot version upgrade from 2.2.x to 3.2.4, I have updated the spring.profiles with spring.config.activate.on-profile and using spring.profiles.include in application.yml (multi-document yaml file) to add some active profiles according to a given profile as below,
application.yml
On clean build, I am not getting any compilation errors but local profile is not picking up. ./gradlew clean build --refresh-dependencies
Logs:
2025-01-10 20:23:13.379 INFO [APP_NAME_IS_UNDEFINED,,,,,,Admin-NO,dApp-Code-NO] 23196 --- [ Test worker] com.epam.auth.impl.DscAuthAppTest
: The following 12 profiles are active: "feign", "jackson", "logging", "redis", "oauth2", "cognito", "test"
Can we use spring.profiles.include property in spring boot 3.2.4?. If not, what should be the alternative.
For info, I am using "org.springframework.cloud:spring-cloud-dependencies:2023.0.3" in build.gradle.kts.
本文标签: javaProperty springprofilesinclude not loading local profile in spring boot 324Stack Overflow
版权声明:本文标题:java - Property spring.profiles.include not loading local profile in spring boot 3.2.4 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736552584a1944532.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论