Jetty hot deployment

If you want jetty to support hot deployment, you don’t need to restart jetty every time you finish changing files, and modify the configuration of jetty to support hot deployment

  org.mortbay.jetty jetty-maven-plugin 8.1 .2.v20120308  1  /< /contextPath>  ${project.build.directory}/${project.build.finalName}.war ${basedir}/WebRoot  

The red part is to enable jetty to support hot deployment. During learning, record it!

Leave a Comment

Your email address will not be published.