获取resource下文件时间:2022-08-09 22:55:38Resource resource = new ClassPathResource(certPath);File file= resource.getFile();