天天看點

開發工具--Eclipse使用及常見問題解決

怎麼查詢Eclipse版本号:

方法一:

開發工具--Eclipse使用及常見問題解決

方法二:

Eclipse安裝目錄下面找到readme檔案夾,裡邊有個網頁打開就可以看到目前版本;

Eclipse漢化改為英文:

開發工具--Eclipse使用及常見問題解決

Eclipse Mybatis generator插件安裝:

方法一:線上安裝

開發工具--Eclipse使用及常見問題解決

Location:http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/

Eclipse 一直不停building workspace

産生這個問題的原因多種:

  1. 自動更新
  2. 未正确關閉
  3. Maven下載下傳lib挂起等....

解決辦法:

解決方法

方法1.修改eclipse啟動檔案 eclipse.ini 中添加啟動參數參數: -vmargs -Xmx512m

方法2.關閉自動建構工作區: project -> build Auto….. 

方法3.在eclipse.ini式中添加了一個指令 -clean 

(2)加大Eclipse運作可用最大記憶體數 

具體操作: 修改位于eclipse目錄下的eclipse.ini, 将-Xmx512m調高, 如改成-Xmx768m

(3)、減少Eclipse啟動後自動啟動的插件 

具體操作: 在Preferences -> General -> StartUp and Shutdown: 将除Plug-ins activated on startup以外的項目有節選的去掉(比如Mylyn等沒用到,就去掉了)

效果: 啟動Eclipse後,會有Initialing Java Tools的滾動條,會發現快了很多.

(4)、減少編譯需要驗證的項目,提升編譯速度 

具體操作: 在Preferences -> Validataion 将無關的Validator去掉, 比如: 我就将和我無關的JPA, JSP, WS 都去掉了效果: 編譯項目時,Eclipse跑的Validator項目少

了, 确實快了.

(5)、關掉自動編譯 

具體操作: Project -> Build Automatically效果: 在代碼修改儲存後,不會啟動自動編譯.

(6)、在Clean的時候,要注意選項 

具體操作: Project -> Clean

注意: 在最下面有: Build the entire workspace 和 Build Only the selected Projects

要根據自己情況勾選, 因為是預設選擇編譯整個工作區.

(7)、顯示記憶體使用情況(可手動GC) 具體操作:Preference -> General -> Show heep status

(8)、儲存自己的Perspective 

具體操作:1. Window -> Save Perspective As

2. Preference -> Perspective -> Make Default 将自己剛剛建立的Perspective 或 自己常用的 設定成預設

(9)、關閉Server的自動釋出 

具體操作:Server -> Publishing -> Never publish automatically

源連結:http://www.juapk.com/thread-3026-1-1.html

Eclipse Spring配置檔案提示:

   我們使用eclipse編輯spring配置檔案時,經常沒有提示,而無從下手時。 現在我們就來解決沒有提示的問題。

    原因是因為eclipse中沒有配置xsd檔案

    步驟一:把如下頭檔案拷貝到你的spring配置檔案中。

    <?xml version="1.0" encoding="UTF-8"?>

    <beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:aop="http://www.springframework.org/schema/aop"

    xmlns:tx="http://www.springframework.org/schema/tx"

    xmlns:jdbc="http://www.springframework.org/schema/jdbc"

    xmlns:context="http://www.springframework.org/schema/context"

    xmlns:util="http://www.springframework.org/schema/util"

    xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd

    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

    http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd

    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd

    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

    </beans>

    步驟二:根據頭檔案的中的連結點選去下載下傳spring對應版本的。xsd檔案 到本地

    步驟三:下載下傳好之後,接下來就是要添加到eclipse中。

    在eclipse菜單中進入

    window->prefernces->XML->XML Catalog->Add ->File System,然後選擇剛才下載下傳下來的。xsd檔案

    location:比如C:\spring-beans-2.5.xsd

    key type:選擇Schema Location

    key:填寫springframework.org/schema/beans/spring-beans-3.0.xsd

    添加完成之後,重新開機eclipse 看看是否有提示 如果還沒有就多添加幾個版本的。xsd檔案試試

Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info)

轉載自:http://blog.csdn.net/myfxx/article/details/21096949