依赖包:
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>2.33.1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>9.4.46.v20220331</version>
</dependency>
说明:默认依赖的jetty-util版本,启动测试时会报错:
NoClassDefFoundError: org/eclipse/jetty/util/ssl/SslContextFactory$Server