1、配置jdk
//下載並安裝jdk
Window>Preferences下 Java>Installed JREs添加本地安裝的jdk
2、修改默認編碼
Window>Preferences下 General>Workspace下選擇UTF-8
3、配置tomcat
下側Servers標籤頁裏面,點擊create new server... 選擇tomcat的安裝路徑。
//修改發佈路徑
新建server後不要添加任何工程,在tomcat上點擊右鍵open,修改Server Locations 下的 Deploy path;
或者修改VM arguments的-Dwtp.deploy屬性。該屬性位置爲:eclipse菜單欄Run -> Run Configurations -> Arguments -> VM arguments.
4、修改大括號位置
Windows->Preferences->Java->Code Style->Formatter
點擊new新建一個profile,打開窗口後選擇braces標籤,除最後2個外,裏面的選項全部修改爲NextLine。
5、中文字體偏小問題
window—— preferences——general——appearance——colors and fonts——basic——text font——edit,
把彈出頁面中的“西歐語言”改成“中歐字符”。