![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
八九点钟的太阳_
这个作者很懒,什么都没留下…
展开
-
POI应用之_导出Excel样式问题
使用poi导出Excel时,遇到几个样式问题 一.设置单元格背景色 注意是设置为前景色 setFillForegroundColor,然后设为全填充 CellStyle titleStyle = wb.createCellStyle(); titleStyle.setFillForegroundColor(HSSFColor.YELLOW.index);//前景色 titleStyle.se...原创 2019-01-30 11:52:00 · 633 阅读 · 1 评论 -
java的properties工具类
用properties 获取配置文件 两种方式 方式一:使用FileInpuStream 这个要用绝对路径,相对路径会找不到指定文件 public static void main(String[] args) { Properties p = new Properties(); try { FileInputStream fis = new...原创 2019-01-30 15:45:29 · 437 阅读 · 0 评论