class path resource [XX] cannot be resolved to absolute file path because it does not reside

代碼中使用了html File file = ResourceUtils.getFile("classpath:filename"); BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file))); 加載郵件模版文件,開發本地測試木有問題,服務器卻找不到目標文件,查看日誌報以
相關文章
相關標籤/搜索