springboot junit
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)