Eclipse 用
maven remote archetype catalog url
https://repo1.maven.org/maven2/archetype-catalog.xml
線上讀取可用的 archetype
2015年6月2日 星期二
2015年3月17日 星期二
[Error] eclipse occur: Error notifying a preference change listener. Check the log for details. Widget is disposed 排解
有時候在使用 eclipse 中切換某些 perspective 時,會發生如下圖一般的錯誤訊息,具體原因不明,但經過查詢谷哥大神及測試,發現是 Breadcrumb bar 所造成,故在沒必要使用時將其關閉即可。
2015年2月13日 星期五
[eclipse]記憶體不足的改善方法 OutOfMemoryErrors
有時候再開啟大檔案,或執行大的程式動作時,常會發生 OoutOfMemoryError 的問題,解決方法有兩種。
參照官網的解決方式:
參照官網的解決方式:
2014年12月24日 星期三
2014年7月31日 星期四
2014年6月26日 星期四
[MyBatis]簡易CRUD教學
使用工具:
Eclipse Kepler Service Release 2
MySQL 5
使用API:
Eclipse Kepler Service Release 2
MySQL 5
使用API:
<mybatis.version>3.2.7</mybatis.version> <mysql-connector-java.version>5.1.30</mysql-connector-java.version> <slf4j-api.version>1.7.7</slf4j-api.version> <slf4j-log4j12.version>1.7.7</slf4j-log4j12.version> <log4j.version>1.2.17</log4j.version>
2014年6月25日 星期三
2014年3月24日 星期一
AngularJS 學習資源
2014年1月8日 星期三
Eclipse 常用快捷鍵
常用:
ctrl+/ 註解
ctrl+\ 取消註解
ctrl+o 快速搜尋method
ctrl+e 快速切換分頁
ctrl+h 搜尋資料
ctrl+k 搜尋相同資料 +shift(上一個)
ctrl+g 工作中申明
ctrl+. 下一個錯誤
ctrl+1 快速修正
ctrl+q 回到最後編輯行
ctrl+t 查看類別結構
ctrl+m 放大編輯視窗
ctrl+shift+/ 多行註解
ctrl+shift+\ 取消多行註解
ctrl+shift+r 搜尋檔案
ctrl+shift+i 顯示變數資訊
ctrl+shift+g 參照搜尋
ctrl+shift+p 找對應括號
ctrl+shift+l 查看其他快捷鍵
ctrl+shift+f 格式化程式碼
ctrl+shift+o 引入package(all)
ctrl+shift+m 引入package
ctrl+alt+h 查詢引用
ctrl+alt+s svn
alt+up or down 當行上下移
ctrl+/ 註解
ctrl+\ 取消註解
ctrl+o 快速搜尋method
ctrl+e 快速切換分頁
ctrl+h 搜尋資料
ctrl+k 搜尋相同資料 +shift(上一個)
ctrl+g 工作中申明
ctrl+. 下一個錯誤
ctrl+1 快速修正
ctrl+q 回到最後編輯行
ctrl+t 查看類別結構
ctrl+m 放大編輯視窗
ctrl+shift+/ 多行註解
ctrl+shift+\ 取消多行註解
ctrl+shift+r 搜尋檔案
ctrl+shift+i 顯示變數資訊
ctrl+shift+g 參照搜尋
ctrl+shift+p 找對應括號
ctrl+shift+l 查看其他快捷鍵
ctrl+shift+f 格式化程式碼
ctrl+shift+o 引入package(all)
ctrl+shift+m 引入package
ctrl+alt+h 查詢引用
ctrl+alt+s svn
alt+up or down 當行上下移
2013年12月13日 星期五
2013年10月31日 星期四
[Log4j] 簡易Log4j 設定
好用的 訊息紀錄工具 Log4j
簡易測試程式
package com.test;
import org.apache.log4j.Logger;
public class Log4jTest {
public static void main(String[] args){
Logger logger = Logger.getLogger("Log4jTest.class");
logger.debug("Hello World!!!");
logger.info("What a beautiful day!!");
}
}
簡易測試程式
package com.test;
import org.apache.log4j.Logger;
public class Log4jTest {
public static void main(String[] args){
Logger logger = Logger.getLogger("Log4jTest.class");
logger.debug("Hello World!!!");
logger.info("What a beautiful day!!");
}
}
2013年9月17日 星期二
Eclipse 中新增 struts2 的 DTD 定義
目的:在無法連網時一樣可以讓 eclipse 在編輯 xml 檔案時,Alt+? 顯示編輯提示
以 struts2 2.3 為例:
http://struts.apache.org/dtds/struts-2.3.dtd
以 struts2 2.3 為例:
將上圖圈選的文字複製下來,等一下會用到
-//Apache Software Foundation//DTD Struts Configuration 2.3//ENhttp://struts.apache.org/dtds/struts-2.3.dtd
2013年7月16日 星期二
第一支Tapestry... Hello Tapestry
環境 Tapestry 4.0 / eclipse / Tomcat 6
Tapestry 預設的 Html templet 檔名為 Home.html
對應的 page 檔案應取名為 Home.page
對應的 class 檔案應取名為 Home.java
對應的 application 檔案 應取名為 Servlet的名稱.application
以下就是最基本的入門應用
2013年7月9日 星期二
讓eclipse 的 JBoss Tools 4.1 的 html Visual/Source 在 win7 64bit 位元環境下可正常執行
請使用eclipse 中的 Install new Software
新增
http://download.jboss.org/jbosstools/builds/staging/xulrunner-1.9.2_win64/all/repo/
安裝完後即可使用
參考文件:
https://community.jboss.org/message/821077
20150618 新增解決方法
一樣透過 Install New Software 來源:
http://download.jboss.org/jbosstools/updates/integration/kepler/core/xulrunner/
參考文件:
https://issues.jboss.org/browse/JBIDE-2720
2013年7月7日 星期日
在Eclipse中讓Tomcat可以每次都更新靜態檔案如*.html..等
在Eclipse中讓Tomcat可以每次都更新靜態檔案如*.html..等
不需要重新部屬...
第一種方法是在Tomcat啟動前加入參數
Disabling caching in Tapestry
It is troublesome to reload the application
before each test run. To solve the first part of the problem, you can tell
Tapestry to not to cache HTML and .page
files. To do that, you need to set a JVM system property
26 Chapter 1 Getting Started with Tapestry
org.apache.tapestry.disable-caching to
true. If you were starting the JVM yourself, you would run it like:
java -Dorg.apache.tapestry.disable-caching=true
...
However, as the JVM is started by Tomcat,
you need to setup a environment variable JAVA_OPTS before running
startup.bat:
Now, you can change say Home.html and the
change will take effect immediately.
2013年7月6日 星期六
Eclipse Content Assist (程式碼建議) 出不來 alt+/ 失效
Eclispe
->Window->Preference->Java->Content Assist->Advance
確認紅框中的Java Proposals是否勾選,或者是點選下方的 Restore Defaults來恢復預設值。
參考文章:
http://chip.twbbs.org/2010/12/eclipse-content-assist.html
->Window->Preference->Java->Content Assist->Advance
確認紅框中的Java Proposals是否勾選,或者是點選下方的 Restore Defaults來恢復預設值。
參考文章:
http://chip.twbbs.org/2010/12/eclipse-content-assist.html
2013年6月3日 星期一
Android eclipse logcat 錯誤排解清單
只要有遇到就會加進這篇
Unexpected value from nativeGetEnabledTags: 0
http://stackoverflow.com/questions/13416142/unexpected-value-from-nativegetenabledtags-0
“com.android.exchange.ExchangeService has leaked …” error when running emulator [closed]
http://stackoverflow.com/questions/14111677/com-android-exchange-exchangeservice-has-leaked-error-when-running-emulato
http://stackoverflow.com/questions/13765122/various-android-logcat-errors
Android LogCat device disconnected
: E/(): Device disconnected
http://stackoverflow.com/questions/15169115/android-logcat-device-disconnected
Unexpected value from nativeGetEnabledTags: 0
http://stackoverflow.com/questions/13416142/unexpected-value-from-nativegetenabledtags-0
“com.android.exchange.ExchangeService has leaked …” error when running emulator [closed]
http://stackoverflow.com/questions/14111677/com-android-exchange-exchangeservice-has-leaked-error-when-running-emulato
http://stackoverflow.com/questions/13765122/various-android-logcat-errors
Android LogCat device disconnected
: E/(): Device disconnected
http://stackoverflow.com/questions/15169115/android-logcat-device-disconnected
訂閱:
文章
(
Atom
)




