2021年1月15日

摘要: /** * 以行为单位读取文件,常用于读面向行的格式化文件 * @param fileName 文件名 */ public static void readFileByLines(String fileName){ File file = new File(fileName); BufferedRe 阅读全文
posted @ 2021-01-15 15:02 小泥爪子 阅读(66) 评论(0) 推荐(0)
摘要: Resource接口Spring的Resource接口代表底层外部资源,提供了对底层外部资源的一致性访问接口。Java代码 收藏代码public interface InputStreamSource {InputStream getInputStream() throws IOException; 阅读全文
posted @ 2021-01-15 10:41 小泥爪子 阅读(234) 评论(0) 推荐(0)

导航