直接修改tomcat配置文件,红色语句是我们要添加的,直接启动tomcat吧,可以不用频繁deploy了。
tomcat/conf/server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
[color=red]<Context path="/springtx" docBase="C:\WORKSHOP-Myeclipse7.0\SpringTransaction\WebRoot" reloadable="true" />[/color]
</Host>
tomcat/conf/server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
[color=red]<Context path="/springtx" docBase="C:\WORKSHOP-Myeclipse7.0\SpringTransaction\WebRoot" reloadable="true" />[/color]
</Host>