原创 RedisService

package com.sprucetec.bone.common.redis; import com.alibaba.fastjson.JSON; import org.springframework.beans.factory.an

原创 Http請求 post get

package com.sprucetec.tms.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.BufferedOutp

原创 Spring Boot 部署與服務配置

 Spring Boot 其默認是集成web容器的,啓動方式由像普通Java程序一樣,main函數入口啓動。其內置Tomcat容器或Jetty容器,具體由配置來決定(默認Tomcat)。當然你也可以將項目打包成war包,放到獨立的web

原创 Spark 簡易入門教程(Java的微型Web框架)

今天在reddit上看到了這個有趣的Java Web框架,就寫了幾個例子稍微感受了一下,順手把它的文檔也翻譯的了一下。 一、Spark是什麼 Spark是一個微型的Java Web框架,它的靈感來自於Sinatra,它的

原创 HttpUtil

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.s

原创 JsonUtil

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.s

原创 zookeeper集羣搭建設置

 zookeeper 官網:http://zookeeper.apache.org/ 現在最新版本是 3.4.6 ,但是這個版本我沒有運行起來,可能是那配置出現問題了,現在我用的是3.4.5 http://apache.fayea.c

原创 HttpClientUtil

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.s

原创 MapList 自己封裝的

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.s

原创 JsonMapperUtil

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.s

原创 dubbo服務者配置說明

<?xml version="1.0" encoding="UTF-8"?>  <!-- - Copyright 1999-2011 Alibaba Group. - - Licensed under the Apache License

原创 Spring-data-redis: 分佈式隊列

Redis中list數據結構,具有“雙端隊列”的特性,同時redis具有持久數據的能力,因此redis實現分佈式隊列是非常安全可靠的。它類似於JMS中的“Queue”,只不過功能和可靠性(事務性)並沒有JMS嚴格。 Redis中的隊列阻塞

原创 解決“只能通過Chrome網上應用商店安裝該程序”的方法

作爲一名碼農,不會翻牆、不會google是不可能的,相信修改host上google的方法大家肯定都會了,今天給大家介紹一下google瀏覽器中插件的安裝方法! 大家都知道,google瀏覽器的應用商店已經被掛在牆外面了,我們怎麼才能使

原创 異步返回參數封裝

package com.sprucetec.tms.distribute.app.entity; import java.io.Serializable; public class AppResult<T> implements Se

原创 導出Excel

utils工具類: package com.sprucetec.tms.controller.utils; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.h