![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IO流
严严严的博客
做一些技术备案,方便学习
展开
-
将Byte数组转换成文件
public class ExcelTest { public static void main(String[] args) throws Exception{ String fileBytes = ""; byte[] bytes = Base64Util.decode(fileBytes); String path = "D:\\Users\\Downloads\\"; fileToBytes(bytes,path,"数据E原创 2022-01-28 10:36:46 · 9856 阅读 · 1 评论 -
Spring用代码来读取properties文件
我们都知道,Spring可以@Value的方式读取properties中的值,只需要在配置文件中配置org.springframework.beans.factory.config.PropertyPlaceholderConfigurer<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pro原创 2018-03-30 18:03:55 · 794 阅读 · 1 评论 -
Spring xml读取properties相关问题
spring同时集成mysql和mongodb时遇到多个资源文件加载的问题这两天平台中集成mysql和mongodb遇到一个问题单独集成mysql和单独集成mongodb时都可以正常启动程序,但是当两个同时集成进去时就会报以下问题 Could not resolve placeholder ‘mongo.port’ in string value “${mongo.port} 在spr...原创 2018-03-26 15:46:07 · 499 阅读 · 0 评论 -
Java读取本地文件
1、java读取按行本地txt文件 public static void readTxt(String filePath) { try { File file = new File(filePath); if(file.isFile() && file.exists()) { ...原创 2018-03-07 17:03:42 · 17033 阅读 · 0 评论 -
java读取配置文件Properties
Properties介绍博客:http://www.cnblogs.com/bakari/p/3562244.html代码实例:package com.self.cn.weather.env;import org.apache.log4j.Logger;import java.io.FileInputStream;import java.io.IOException;im...原创 2017-09-27 14:09:26 · 280 阅读 · 0 评论 -
POI 读取excel模版并填写数据
java POI读取excel模版并填写数据代码:public class ExportExcelDemo { private HSSFWorkbook workbook = null; /** * 显示的导出表的标题 */ private String title; /** * 导出表的列名 */ priva...原创 2018-03-13 09:43:14 · 15135 阅读 · 8 评论