eclipse for jee內配置tomcat
環境:
- tomcat9.0(目前更高版本eclipse好像無法支持)
- Eclipse IDE for Enterprise Java Developers(eclipse for jee)
配置步驟
- 打開eclipse,上面的選項卡 window->preferences,然後會彈出一個彈窗。
- 然後在左上角的搜索框裏搜索server,選擇Runtime Environments。
- 然後點擊右側的Add,會再次出現一個彈窗,在Apache中選擇對應的tomcat版本,我這裏是9.0,點擊next。
- 然後點擊Browse,選擇你所安裝的tomcat目錄即可(對應的bin目錄上層目錄),然後點擊Finish即可。