Springboot獲取resource的路徑

一、獲取resource目錄下的template路徑 String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";   轉載於:https://www.cnblogs.com/ywjfx/p/10944656.htmlhtml
相關文章
相關標籤/搜索