1.建立空的專案目錄
2.專案目錄下執行git --bare init
3.產生金鑰ssh-keygen -t rsa -C "git username" -f "檔案名稱"
4.金鑰預設位置:user目錄/.ssh
5.啟動ssh伺服器(bitvise)
6.拉下專案:git checkout:username@url:/專案名稱
7.複製專案:git clone username@url:/專案名稱 本地專案名稱(自訂,不輸入則預設為專案名稱)
搜尋此網誌
2019年10月5日 星期六
2019年8月7日 星期三
Java與Oracle的日期時間轉換
Java的日期時間格式
java.util.Date
Oracle的日期時間格式(皆繼承自java.util.Date)
java.sql.Date:年月日
java.sql.Time:時分秒
java.sql.Timestamp:以上兩者合併(精確至微秒)
Oracle轉換Date函數
TO_CHAR():日期格式轉字串
ex:TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS')
TO_DATE():字串轉日期格式
ex:TO_DATE('2000-01-01 23:59:59', 'YYYY-MM-DD HH24:MI:SS')
TO_TIMESTAMP():字串轉日期格式
ex:TO_TIMESTAMP('2000-01-01 23:59:59', 'YYYY-MM-DD HH24:MI:SS')
系統時間
SYSDATE:返回Date
SYSTIMESTAMP:返回Timestamp
Array與Collection的轉換方法
印出Array所有元素
Arrays.toString()
Array轉換為List
Arrays.asList()
Arrays排序
Arrays.sort()
List轉為Array
new ArrayList().toArray()
List排序
Collections.sort()
List反轉
Collections.reverse()
Arrays.toString()
Array轉換為List
Arrays.asList()
Arrays排序
Arrays.sort()
List轉為Array
new ArrayList().toArray()
List排序
Collections.sort()
List反轉
Collections.reverse()
2019年7月26日 星期五
Java第三方API常數集合
springframework
https://docs.spring.io/spring-framework/docs/current/javadoc-api/index.html?constant-values.html
Apache Commons
http://commons.apache.org/proper/commons-lang/javadocs/api-3.9/index.html?constant-values.html
Apache HttpComponents
https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/index.html?constant-values.html
https://docs.spring.io/spring-framework/docs/current/javadoc-api/index.html?constant-values.html
Apache Commons
http://commons.apache.org/proper/commons-lang/javadocs/api-3.9/index.html?constant-values.html
Apache HttpComponents
https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/index.html?constant-values.html
2019年2月21日 星期四
2019年1月29日 星期二
2019年1月16日 星期三
解決Intellij console亂碼問題
開啟Intellij安裝目錄下/bin/idea.exe.vmoptions或idea64.exe.vmoptions
增加-Dfile.encoding=UTF-8
增加-Dfile.encoding=UTF-8
訂閱:
文章 (Atom)

