![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 81
liuxg123
这个作者很懒,什么都没留下…
展开
-
创建类似class结构的enum
原始链接:http://www.cnblogs.com/frankliiu-java/archive/2010/12/07/1898721.html示例:public enum EnumTest { FRANK("The given name of me"), LIU("The family name of me"); private Str转载 2017-02-06 17:22:48 · 468 阅读 · 0 评论 -
java操作poi生成excel文件(.xlsx)
import java.io.FileOutputStream;import java.io.OutputStream;import java.util.ArrayList;import java.util.List;import org.apache.poi.xssf.usermodel.XSSFCell;import org.apache.poi.xssf.usermode原创 2017-01-23 17:29:10 · 5494 阅读 · 0 评论 -
使用RestTemplate发送post请求
转自http://www.cnblogs.com/BensonHe/p/4602746.html最近使用RestTemplate发送post请求,遇到了很多问题,如转换httpMessage失败、中文乱码等,调了好久才找到下面较为简便的方法: RestTemplate restTemplate = new RestTemplate(); HttpHeaders head...转载 2018-07-08 22:06:13 · 525 阅读 · 0 评论