一、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裡面拷貝出來,修改本地倉庫位址)