ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

Cause Spring Boot's configuration replacement to fail #361

Open WilliamShoww opened 1 year ago

WilliamShoww commented 1 year ago

SpringBoot version: 2.3.12.RELEASE jasypt-spring-boot-starter version: any version(2.1.2、3.0.5) description: As long as the jasypt-spring-boot-starter framework dependency is introduced, the configuration replacement of SpringBoot will fail, and the default configuration information will be used. Because jasypt-spring-boot-starter may cause Spring Boot not to load configuration files named application-{active}.yml, and only load systemProperties, bootstrap.yml, and application.yml. log print: image not see application-dev.yml. I also tried moving the invalid configuration from application-dev.yaml to application.yml, and the error no longer occurred. After debugging the Spring Boot source code, I found that jasypt-spring-boot would cause the configuration item "spring.profiles.active" in the bootstrap.yml configuration file unable to be passed to the context of the child container, resulting in the failure to obtain the value of the "spring.profiles.active" configuration item when loading the application.yml file.

problem: 2.3.12.RELEASE SpringBoot how to use jasypt-spring-boot-starter framework in a complex environment profiles.?

ErwanLeroux commented 1 year ago

Did you try with spring boot 2.5 ?

WilliamShoww commented 1 year ago

Did you try with spring boot 2.5 ?

No try

renyp-veteran commented 1 year ago

Did you try with spring boot 2.5 ?

No try

I found this problem in my env, is there any new progress, or I'd like to ask your suggestions to fix this problem?