对于jdk8增加如下配置:

<plugin>
               <groupId>org.eclipse.jetty</groupId>
               <artifactId>jetty-maven-plugin</artifactId>
               <version>9.3.0.M2</version>
               <configuration>
                   <scanIntervalSeconds>5</scanIntervalSeconds>
                   <webApp>
                       <contextPath>/test</contextPath>
                   </webApp>
                </configuration>
             </plugin>

jdk8因为版本问题可能在jetty启动时出现 java.lang.ArrayIndexOutOfBoundsException异常,可使用上面配置解决。

jdk8以下版本增加

<plugin>
               <groupId>org.mortbay.jetty</groupId>
               <artifactId>jetty-maven-plugin</artifactId>
               <version>8.1.16.v20140903</version>
               <configuration>
                   <scanIntervalSeconds>5</scanIntervalSeconds>
                   <webApp>
                       <contextPath>/test</contextPath>
                   </webApp>
                </configuration>
             </plugin>

 启动 jetty:run

相关文章:

  • 2021-10-22
  • 2022-12-23
  • 2021-08-03
  • 2021-12-04
  • 2022-12-23
  • 2021-12-21
  • 2021-10-06
猜你喜欢
  • 2021-11-19
  • 2021-10-27
  • 2021-08-06
  • 2022-12-23
  • 2021-07-24
  • 2021-10-22
相关资源
相似解决方案