只需要两步就可以搞定
-
设置服务器,以我的tomcat为例。一次加入 windows-->preferences->server 添加tomcat服务器
-
项目的Properties -> Java Build Path -> Libraries -> Add Library -> Server Runtime里选入所需的Tomcat
参考:
http://xiaofengnh.blog.163.com/blog/static/140519349201063043246369/
http://hi.baidu.com/bjwanghui2007/item/21fab7d31c176693270ae733
http://hi.baidu.com/bjwanghui2007/item/21fab7d31c176693270ae733