原创 Jenkins2.2+git+maven搭建自動構建工具-詳細文檔

一、安裝Jenkins 1、下載jenkins jenkins安裝一般分爲兩種方式:yum安裝和war包安裝,我是用的war包安裝,供大家學習 jenkins官網地址:https://jenkins.io/download/ http:/

原创 Guava非常好用的工具類

1、對數組的操作   //獲取數組中某個值得索引 int[] content = {1,3,4}; int in = Ints.indexOf(content, 3); // 1 guava ap

原创 Guava中好用的工具類及新實現

1、對數組的操作   //獲取數組中某個值得索引 int[] content = {1,3,4}; int in = Ints.indexOf(content, 3); // 1 guava ap

原创 生成簡易的PDF文件

<!-- pdf依賴start --> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version

原创 jenkins2.2+tomcat7+maven3.5.3+java1.7+git+svn

一、安裝Jenkins 1、下載jenkins jenkins安裝一般分爲兩種方式:yum安裝和war包安裝,我是用的war包安裝,供大家學習 jenkins官網地址:https://jenkins.io/download/ http:/

原创 HashMap

HashMap也是我們使用非常多的Collection,它是基於哈希表的 Map 接口的實現,以key-value的形式存在。在HashMap中,key-value總是會當做一個整體來處理,系統會根據hash算法來來計算key-valu

原创 common-io FileUtils工具類常用方法

寫文件原始寫法 // 通過字節流 寫文件 public static void ByteWrite() { File file = new File("/Users/jjs/Desktop/abcd.txt"); try {

原创 Python實現在線上環境優雅的修改配置文件

原配置文件: global log 127.0.0.1 local2 daemon maxconn 256 log 127.0.0.1 local2 info

原创 quartz任務調度配置文件

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context=

原创 獲取文件的Hash值代碼實現

package com.hfq.house.manager.util; import java.io.File; import java.io.FileInputStream; import java.io.IOException; i

原创 相似圖片查找感知哈希算法(phash)實現

import java.awt.Graphics2D; import java.awt.color.ColorSpace; import java.awt.image.BufferedImage; import java.awt.imag

原创 httpclient4.3 模擬表單提交文件

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.6</

原创 使用itext-rtl 生成word文檔

<dependency> <groupId>com.lowagie</groupId> <artifactId>itext-rtf</artifactId> <version>2.1.7</version> </de

原创 https 證書生產及服務器配置

# 單向認證 ## server端 step1:爲服務端生成祕鑰庫 ``` sudo keytool -genkeypair -alias server_key_pair_1 -validity 365

原创 springMvc與fastJson 集成時日期格式的問題

第一種重寫方法:package com.jjs.util; import java.io.IOException; import java.io.OutputStream; import java.util.Date; import