小编B R*_*all的帖子

Spring Boot JASYPT 失败无法绑定“spring.datasource.password”下的属性

目前,我们在 boot 2.2.4 和 jasypt 3.0.2 中运行 JASYPT,没有出现任何问题。唯一的例外是 jasypt 密码是通过 postProcessEnvironment 事件从数据库获取的。

新的 Spring Boot 2.3.2、Jaspt 3.0.2 在启动时抛出以下错误。

13:27:42.380 [restartedMain] ERROR o.s.b.w.e.tomcat.TomcatStarter onStartup - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'h2Console' defined in class path resource [org/springframework/boot/autoconfigure/h2/H2ConsoleAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.ServletRegistrationBean]: Factory method 'h2Console' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Unsatisfied dependency …
Run Code Online (Sandbox Code Playgroud)

jasypt spring-boot

4
推荐指数
1
解决办法
9712
查看次数

标签 统计

jasypt ×1

spring-boot ×1