摘要: 读取文件转为字符串: //输入文件File类型,输出字符串 public static String fileToString(File file) { InputStream is = null; ByteArrayOutputStream bos = new ByteArrayOutputStr 阅读全文
posted @ 2021-08-02 16:06 cxylm 阅读(1940) 评论(0) 推荐(0)
摘要: springboot项目打包后,由于jar内部的路径结构的影响,会导致有些方式读取资源文件夹下的文件不可用,现分享两中好用的读取方式 我采用的springboot打包插件为: <build> <pluginManagement> <plugins> <plugin> <groupId>org.spr 阅读全文
posted @ 2021-08-02 10:08 cxylm 阅读(3357) 评论(0) 推荐(0)