springboot在打包后发布在Linux上,读取resources目录下的文件方法:

InputStream inputStream=getClass().getClassLoader().getResourceAsStream("json/processOptions/invitation.json");

jso目录在resources下。

相关文章:

  • 2022-02-10
  • 2022-02-13
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-04-17
猜你喜欢
  • 2021-07-28
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案