題記:html
將2016下半年開發的一些事情記錄下來java
1、本地庫web
1.最近項目須要用到資源本地存儲和同步更新的事,查閱了資料,可使用CouchDB來作,順便發現還有一個JavaScript的Pouchdb。redis
2關於nosql之間的對比 http://science.dataguru.cn/article-6331-1.htmlsql
key-value redis mencached mongodb
document-oriented mongodb couchdbwindows
column-family Cassandratomcat
graph-oriented neo4j數據結構
3.mongodb與couchDB對比 http://blog.nosqlfan.com/html/1519.htmlnosql
2、ELK使用
+@_host:esp-lifecycle.web.sdp.101.com +message:"61.160.40.175"
+@_host:esp-lifecycle.web.sdp.101.com +@_status:500
3、maven環境變量設置
MAVEN_OPTS 值爲 -Xmx1024m (or more)
或則命令行
從上述兩方面的分析,總結PECS原則以下:
1 //JDK 1.5以前,存在轉換風險 2 List list = new ArrayList(); 3 list.add(new Integer(1)); 4 list.add("2"); 5 list = new ArrayList<String>(); 6 7 Map<String,String>m =new HashMap<>(); 8 m.put("a","1"); 9 list =new ArrayList(); 10 list.add(m); 11 //不能往一個使用了? extends的數據結構裏寫入任何的值 12 List<? extends HashMap> extendsProduct=new ArrayList<>(list);//初始化的時候,能夠加入 13 14 // map.add(new HashMap()); //編譯不過 15 for(HashMap ss:extendsProduct){ 16 System.out.println(ss.get("a")); 17 18 } 19 List<? super Map> consumeSuper=new ArrayList<>(list); 20 consumeSuper.add(new HashMap()); 21 //沒法讀取 22 /** 23 for(Map bb:consumeSuper){ 24 System.out.println(bb.get("a")); 25 26 } 27 */ 28 29 //能夠做爲參數傳入 30 /** 31 * 32 * public void pushAll(Iterable<E> src){ 33 for(E e : src) 34 push(e) 35 } 36 * 37 * 38 * */ 39 40 41 //Collections.copy() 42 //public static <T> void copy(List<? super T> dest,List<? extends T> src) 43 //Collections.copy(new ArrayList<Number>(), new ArrayList<Number()); 44 //Collections.copy(new ArrayList<Number>(), new ArrayList<Integer()); 45 46 // Enum public static <T extends Enum<T>> T valueOf(Class<T> enumType,String name) {
參考