当前位置: 代码迷 >> 综合 >> Springboot获取resource的路径
  详细解决方案

Springboot获取resource的路径

热度:38   发布时间:2023-09-19 23:55:18.0
1、获取resource目录下的template路径
String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";
  相关解决方案