1、获取resource目录下的template路径String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";
转载于:https://www.cnblogs.com/ywjfx/p/10944656.html
1、获取resource目录下的template路径String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";
转载于:https://www.cnblogs.com/ywjfx/p/10944656.html