Spring-boot加载resources下的文件

加载方式:

FileInputStream keyStoreIn = new FileInputStream(ResourceUtils.getFile("classpath:ca/clientKeystore.jks"));
FileInputStream trustStoreIn = new FileInputStream(ResourceUtils.getFile("classpath:ca/clientTruststore.jks"));

相关文章:

  • 2021-07-11
  • 2022-01-22
  • 2021-08-02
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-09-07
  • 2022-12-23
相关资源
相似解决方案