标签:test 目的 成功 support web environ ica containe port
junit单元测试 spring boot dubbo服务项目的时候报错MockServerContainer does not support addEndpoint
在@SpringBootTest中加上SpringBootTest.WebEnvironment.RANDOM_PORT成功解决错误,如下:
@RunWith(SpringRunner.class)
@SpringBootTest(classes = FieldApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
标签:test 目的 成功 support web environ ica containe port
原文地址:https://www.cnblogs.com/jia-bei/p/9909388.html