spring boot项目获取resources下文件的方法

最近在使用EasyPoi模板导出功能时,需要使用到模板文件,将文件放在了项目的resources目录下,发现了一个好用的读取文件方法:ClassPathResource classPathResource = new ClassPathResource(“template-exc

网站地图