jasypt-spring-boot
jasypt-spring-boot copied to clipboard
When Spring Cloud triggers Refresh, Jasypt decrypts properties that have already been overwritten, resulting in failed context refresh
App Resources like:
The current application environment is prehub. The jasyptStringEncryptor configuration of Jasypt in the yml file of prehub is different from application.yml.
application.yml and application-prepub.yml files have the same configuration items. During the startup phase, if there are no exceptions, Spring will select the configuration item and decryptor of application-prepub.yml for decryption. However, during Spring Cloud Refresh, Spring Cloud parses all configuration item files, causing Spring to use the decryptor configured in application-prepub.yml to decrypt the encrypted items in application-yml.
Decryption failed at this time, unable to complete Refresh context.