打開eclipseeclipse
window->preferences,選擇Server->Runtime Environments(運行環境),在最上角點擊Add添加。ip
選擇Tomcat,下一步.cli
選擇Tomcat和JRE,點擊完成。im
項目右鍵Run As選擇Run on Server。項目