Springboot获取resource的路径

一、获取resource目录下的template路径 String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";   转载于:https://www.cnblogs.com/ywjfx/p/10944656.htmlhtml
相关文章
相关标签/搜索