java获取项目资源文件

获取路径Resource文件夹下的资源的路径

String tempPath = new ClassPathResource("static/temp.pdf").getPath();

image-20220713213452955

posted @ 2022-07-14 20:17  小猫爱哭鬼  阅读(462)  评论(0编辑  收藏  举报