目前,我们在 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)