eclipse 如图 打开后,工具栏window>preference>server>add tomcat的路径 如果要想通过webservice调用mysql,可以再tomcat的lib目录下加入,mysql-connector-java-5.1.16-bin.jar,然后就可以调用了。