idea jetty: run start

1. First pom file

<!-- jetty插件 -->
<plugin>
   <groupId>org.mortbay.jetty</groupId>
   <artifactId>jetty-maven-plugin</artifactId>
   <version>${jetty.version}</version>
   <configuration>
      <webAppConfig>
         <contextPath>/</contextPath>
      </webAppConfig>
   </configuration>
</plugin>
<jetty.version>7.6.14.v20131031</jetty.version>

2. Add the jetty: run


3. Start jetty


4. Add to the tool (run right in FIG. 3)


5. maven can also configure the effect is the same, but the parameters may be wrong not to mislead the people


To my idea of ​​a 2017.3

Guess you like

Origin www.cnblogs.com/jpfss/p/11865867.html