1、首先下载resin服务器,在resin.conf的配置文件中修改2处:
<!--
- For production sites, change dependency-check-interval to something
- like 600s, so it only checks for updates every 10 minutes.
-->
<dependency-check-interval>600s</dependency-check-interval>
<web-app id="/" root-directory="D:/java/project/eclipse3.4/neweb/WebContent"/>:项目的目录
其中还可以修改端口 <http address="*" port="8080"/>默认是8080;
2、去掉eclipse的所以的过滤可以看见.classpath文件在里面修改:
<!-- Tomcat -->
<classpathentry kind="output" path="build/classes"/>
<!-- Resin -->
<classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
3、最后启动服务器例如:http://localhost:8080