ulisesbocchio / jasypt-spring-boot

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

gradle build throws an exception: Failed to bind properties under 'spring.datasource.db.password' to java.lang.String #292

Closed lujuliang closed 2 years ago

lujuliang commented 3 years ago

jasypt-spring-boot-starter@3.0.4; Gradle version 6.5.0; yaml: spring: datasource: db: driver-class-name: xxx jdbc-url: xxx username: xxx password: ENC(xxxx) I set the jasypt.encryptor.password into environment in IDE eclipse, it can be run properly in IDE, but gradle build failed,

Error message: Caused by: org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.datasource.db.password' to java.lang.String

lujuliang commented 2 years ago

fixed by set the salt to environment parameter