Myeclipse重裝後的必要配置

一、JDK位置
每臺機器允許多個jdk版本存在,編譯時選擇需要使用的jdk即可。MyEclipse—>Properties—>Java—>Installed JRES選擇jdk位置

二、文件編碼
①window—>preference—>general—>content type,展開每一項並在Default encoding中輸入UTF-8並點擊update按鈕
②window—>preference—>MyEclipse—>Files and Editors,例如將JSP項的Encoding改爲ISO 10645/Unicode(UTF-8)

三、文件默認打開方式
windows->Preferences->General->Editors->File Associations,將默認打*.jsp的editor關聯設置爲需要的工具

四、取消拼寫檢查
window—>preferences—>general—>text editor—>spelling 取消enable spell checking後重新編譯即可

五、調整代碼格式
window—>preferences—>Java—>Code Style—>Formatter
根據習慣調整代碼格式,可以使以前導出的代碼格式文件的xml

六、字體設置
window—>preferences—>general—>Appearance—>Colors and Fonts —>Basic —> Text Font點擊Edit進行修改

七、Tomcat位置
①MyEclipse—>Servers—>Tomat6.X指定Tomcat解壓位置
②MyEclipse—>Servers—>Tomat6.X—>JDK指定JDK位置

八、maven位置
①安裝maven
1 下載地址:maven.apache.org,解壓
2 配置環境變量:新增M2_HOME:E:\maven\apache-maven-3.1.1,添加path:E:\\maven\apache-maven-3.1.1\bin
3 將maven的conf中的settings.xml文件拷貝出來,放到任意位置,並在文件中指定本地倉庫位置


②IDE中配置maven
在MyEclipse或STS中配置maven是一樣的:
preference—>maven—>Installations選擇解壓的maven目錄(不用內嵌的maven)
preference—>maven—>User Settings—>選擇放在任意位置的settings.xml(該文件從maven/conf裏面拷貝出來,修改本地倉庫地址)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章