String mvc在controller中读取resouces下面的txt文本

InputStream in = this.getClass().getResourceAsStream("/xxx.txt");


读成inputStream后,用这个文章里的方法转成String或者其它的:点击打开链接

你可能感兴趣的:(String mvc在controller中读取resouces下面的txt文本)