SpringBoot读取resources目录下的文件
目录结构

使用ClassPathResource类

这种方法在idea上运行是可以的,打成jar包也是可以的。
本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/articles/15418956.html
目录结构

使用ClassPathResource类

这种方法在idea上运行是可以的,打成jar包也是可以的。
本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/articles/15418956.html