Spring Cloud 自定义WireMock配置
2024-01-02 16:47 更新
您可以注册org.springframework.cloud.contract.wiremock.WireMockConfigurationCustomizer
类型的bean以自定义WireMock配置(例如,添加自定义转换器)。例:
@Bean WireMockConfigurationCustomizer optionsCustomizer() { return new WireMockConfigurationCustomizer() { @Override public void customize(WireMockConfiguration options) { // perform your customization here } }; }
以上内容是否对您有帮助:
更多建议: