Micronaut set up EmbeddedServer for Pact test
问题 I have this SpringBoot and Pact test example from Writing Contract Tests with Pact in Spring Boot @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, properties = "user-service.base-url:http://localhost:8080", classes = UserServiceClient.class) public class UserServiceContractTest { @Rule public PactProviderRuleMk2 provider = new PactProviderRuleMk2("user-service", null, 8080, this); @Autowired private UserServiceClient userServiceClient; @Pact