Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.bind.PlaceholdersResolver

在使用jasypt对springboot项目中的配置文件进行加密的时候,由于springboot的版本号和jasypt版本号冲突会导致上面的问题

因为jasypt实现了spring源码中的一个接口,所以我们可以直接通过一个springboot的starter来使用这个组件。但是需要注意版本问题,如果springboot使用的版本是1.X的,那么引入的jasypt的版本就不能超过2.0,不然就会报上面的错误。如下图所示,两个版本有对应的关系。

关于org.springframework.boot.context.properties.bind.PlaceholdersResolver的解决

相关文章:

  • 2021-12-27
  • 2021-07-07
  • 2022-01-25
  • 2021-12-08
  • 2021-12-29
  • 2021-06-29
猜你喜欢
  • 2021-05-23
  • 2022-02-12
  • 2022-01-28
  • 2021-10-12
  • 2022-01-19
  • 2021-08-09
  • 2021-08-05
相关资源
相似解决方案