在开发的时候需要配置一个开发者模式,设置之后,当自动修改java代码的时候,会自动部署。这个过程,称为热加载
好了,为了解决这个问题,我们也需要配置项目,支持自动部署。
1、修改Jboss
路径:JBOSS-HOME/standalone/configuration/standalone.xml
加入以下配置:
<configuration>
<jsp-configurationdevelopment="true"/>
</configuration>
如:
<subsystemxmlns="urn:jboss:domain:web:1.1"default-virtual-server="default-host"native="false">
<configuration>
<jsp-configurationdevelopment="true"/>
</configuration>
<connectorname="http"protocol="HTTP/1.1"scheme="http"socket-binding="http"/>
<virtual-servername="default-host"enable-welcome-root="true">
<aliasname="localhost"/>
<aliasname="example.com"/>
</virtual-server>
</subsystem>
这样,jboss已经可以热加载Jsp了。
2、修改 eclipse中的jboss server配置:
至此,在修改jsp页面之后,就不需要重启jboss了。一个非常简单的配置,却给我们节省了很多不必要的操作。开发的效率也就是这一点点的积累的。