【SpringBoot】常用方式

读取resource下的文本文件

File file = ResourceUtils.getFile("classpath:dataFile/ZH.txt");

猜你喜欢

转载自sun80264629.iteye.com/blog/2411487