原创 jPush後臺推送工具類

package com.nis.common.util; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf

原创 Ubuntu16.04安裝之後2

1.gedit亂碼終端:gsettings set org.gnome.gedit.preferences.encodings candidate-encodings "['GB18030', 'UTF-8', 'CURRENT', 'I

原创 Unique Binary Search Trees--lintcode

Description Given n, how many structurally unique BSTs (binary search trees) that store values 1…n? Example Given n

原创 mysql查漏補缺

日期類型    Datetime:時間日期 格式:YYYY-mm-dd HH:ii:ss 範圍1000到9999 Date:日期 datetime的date部分 Time:時間段 某個區間之間 Timestamp:時間戳 但格式與d

原创 反射

reflect機制:在運行狀態時 對任一類(通過class對象)都可以知道里面的類的屬性和方法.獲取class對象的三種方式:1.通過new實例化對象然後調Object的getClass()方法User a=new User(); Cla

原创 Jump Game--lintcode

Description Given an array of non-negative integers, you are initially positioned at the first index of the array.

原创 日誌---slf4j和log4j2

log4j2是什麼? Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, a

原创 spring 之事務

事務的屬性:原子性 一致性 隔離性 持久性原子性是指事務是一個不可再分割的工作單位,事務中的操作要麼都發生,要麼都不發生一致性是指在事務開始之前和事務結束以後,數據庫的完整性約束沒有被破壞。這是說數據庫事務不能破壞關係數據的完整性以及業務

原创 鏈表

鏈表: 1. 插入節點 2.刪除第n個節點 3.鏈表的長度 4.判斷是否有環 5.鏈表反轉 6.查找鏈表倒數第k個節點 7.查詢單鏈表的中間節點 8.輸出鏈表 節點類: public class LNode { int data; L

原创 ubuntu安裝之後

1.換源 system-->Software&Updates-->Download from ...choose other and select china-->mirrors.aliyun.com   at last close --

原创 Maximum Product Subarray--lintcode

Description Find the contiguous subarray within an array (containing at least one number) which has the largest pro

原创 Unique Binary Search Trees II --lintcode

Description Given n, generate all structurally unique BST’s (binary search trees) that store values 1…n. Example G

原创 Word Break--lintcode

Description Given a string s and a dictionary of words dict, determine if s can be break into a space-separated seq

原创 spring之AOP

接口calculator   public interface calculator { public int add(int a,int b); public int sub(int a,int b); public int m

原创 springMVC 執行流程

分析: dispatcherServlet配置在web.xml中,一般都是分發所有請求。發送一個請求進入到dispatcherServlet的doDispatcher函數中 // Determine handler for t