
java
VictoryVivan
滴水可以穿石
展开
-
关于springboot jar包运行的小心得
Java jar启动不乱码的指令java -Dfile.encoding=utf-8 -jar test.jarjava远程Debug Jar包java -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y -jar test.jar获取resource下的静态文件 ClassPathResource resource = new ClassPathResource("/pdf/test.txt原创 2021-04-21 14:26:31 · 149 阅读 · 0 评论 -
获取到指定时间区间的月份集合,以及月份集合的月份第一天和最后一天
由于接口的需要,我参考了很多的获取月份的博客,经过一些的测试,完成了下面的测试,不足之处是,目前还是不能直接在获取第一天和最后一天的方法里面添加时分秒,所以还得再研究。package com.hopechart.gtos.action.gps.servlet;import java.text.ParseException;import java.text.SimpleDateFormat;im原创 2015-12-24 08:44:15 · 679 阅读 · 0 评论 -
将文件和文件夹压缩入.zip中
查了很多的压缩方式,将压缩文件夹改良成压缩文件package com.hopechart.common.util;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.Fil原创 2016-09-22 11:54:00 · 478 阅读 · 0 评论 -
后台查询到的List分装成combotree所需的数据源
public void allLine(HttpServletRequest request,HttpServletResponse response) throws Exception { String str = ""; List<String>allLines=configRecService.queryConfigRecAllLine();原创 2016-10-11 15:34:33 · 483 阅读 · 0 评论