原创 在一臺電腦上爲多爲git賬號配置sshkey的方法
在一臺電腦上爲多爲git賬號配置sshkey的方法 參考: https://gitee.com/help/articles/4229
原创 一些在線文檔協助軟件收集
語雀文檔 https://www.yuque.com 石墨文檔 https://shimo.im 金山網盤 http://pan.wps.cn 有道雲協作 https://note.youdao.com
原创 前端js一些校驗
try{ if (document.form.name.value==""){ alert('請填寫姓名!'); document.form.name.focus(); return false; } var name
原创 spring一個接口2種實現的類注入
@Resource(name="spring裏面定義的id名稱")ICount countA;// or@Autowired@Qualifier("spring裏面定義的id名稱")ICount countA;參考: [url]https
原创 2018-09-11(週二)記錄一次log4j轉爲slf4j的輸出問題
把日誌從 apache common log4j 改爲 slf4j,時,輸出websocket看不到,原來是 dev 裏面 的 ant_build.xml裏面拷貝時把 slf4j-log4j12-1.7.2
原创 ubuntu手動設置dns解析
/etc/resolv.conf中設置dns之後每次重啓Ubuntu Server時該文件會被覆蓋,針對這種情況找了一些個解決方法防止/etc/resolv.conf被覆蓋的方法【方法一】1.需要創建一個文
原创 正則表達式語法
[img]http://dl2.iteye.com/upload/attachment/0124/8019/de3cdccb-4a56-3128-a2f7-89d5d1735f18.png[/img]
原创 用webpack來構建react-antd開發環境
【首先 安裝 nodejs】 下載zip包,解壓,然後 把bin目錄加入 path裏面,ok 設置 倉庫地址,防止被牆 npm config set registry "http://
原创 java完整的單例代碼(切記)
// 這裏要加 volatile 防止指令重排 private static volatile A instance = null; private A() { } public static AgetIn
原创 將博客搬至CSDN
申請搬家了
原创 讓mysql支持emojy表情存儲
查看MySQL數據庫服務器和數據庫MySQL字符集:show variables like '%char%';查看MySQL數據表(table)的MySQL字符集:show table status fro
原创 tomcat 開啓jmx進行遠程監控
#catalina.shexport CATALINA_OPTS='-Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192.168.1.120 -Dcom.sun.man
原创 squid3代理經常報訪問某個url被拒絕
ERRORThe requested URL could not be retrieved當嘗試取回該 URL 時遇到下面的錯誤:http://abc.org.com/訪問被拒絕。Access control configuration
原创 Spring讀取properties屬性文件配置項遇到的問題
三個注意事項:自動掃描@Component@Valuepackage test.config;import org.springframework.beans.factory.annotation.Valu
原创 jdk1.7下載地址
[url]http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html[/url]