1、获取resource目录下的template路径
String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";
2023-10-13 19:12:16
1、获取resource目录下的template路径
String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";