自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 使用CloseableHttpClient进行http请求

String response = null;  // 客户端接口请求路径  String url = EspConfig.getClientBaseUrl() + ClientUtil.CLIENT_METHODNAME;  // 创建请求  CloseableHttpClient httpclient = HttpClientBuilder.create().build();  HttpPos...

2018-05-10 15:32:27 16352 2

转载 JS中toFixed()方法的问题及解决方案

使用tofixed时总会出现少一些值的情况,看这位大神的完美解决https://www.cnblogs.com/wangsaiming/p/4644790.html

2018-04-27 18:10:21 3634

转载 c3p0多数据源与mybatis,spring想结合

参考链接:http://blog.csdn.net/csdiary/article/details/49024827然后在dao中public static final String DATA_SOURCE_TO = "dataSource2";  public Properties getById(String id){DBContextHolder.setDBType(DBCo

2018-02-07 11:41:47 677

转载 使用Java创建RESTful Web Service

http://www.importnew.com/7336.html 此为单独的使用方式当与spring相结合,要导入jersey-spring.jar,然后修改 web.xml JerseyServletcom.sun.jersey.spi.spring.container.servlet.SpringServletcom.sun.jersey.config.prop

2017-12-20 10:35:03 439

转载 Java企业微信开发_04_消息推送之发送消息(主动)

公司要做微信开发,看到这位大大的文章,给我很多帮助。http://www.cnblogs.com/shirui/p/7402128.html

2017-12-12 16:12:49 1964 1

原创 图片上传,有预览效果

html: -->点击上传 js:function uploadHead() {    try {        var fileName = $("#headImageFile").val();        // if(typeof(console)!="undefined") console.lo

2017-12-08 17:27:45 280

原创 java使用ffmpeg将视频转换为另外一个格式

此文是基于网上众多ffmpeg资料写的,其中有稍微的改动,比如MP4格式一定要是使用libx264与baseline的,获取的路径处理,(linux与Windows不同)package com.xincheng.utils;import java.io.BufferedReader;import java.io.File;import java.io.IOException

2017-12-04 17:28:05 2822

原创 签名字符串

/**     * 签名字符串     * @param text 需要签名的字符串     * @param key 密钥     * @param input_charset 编码格式     * @return 签名结果     */    public static String sign(String text, String key, String inpu

2017-11-29 11:14:05 2177

原创 把请求中所有参数排序,并按照“参数=参数值”的模式用“&”字符拼接成字符串

public static String createLinkString(Map params) {        List keys = new ArrayList(params.keySet());        Collections.sort(keys);        String prestr = "";        for (int i = 0; i    

2017-11-29 11:09:39 3278

转载 JSch - Java实现的SFTP

用Java将文件上传到网络存储,看到了此大神的文档,特此推荐。http://www.cnblogs.com/longyg/archive/2012/06/25/2556576.html

2017-10-10 15:06:38 169

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除