【发布时间】:2018-08-17 20:54:24
【问题描述】:
当我将我的代码库从 Spring Boot 1.5 迁移到 2.0 时,我发现在我的测试中从 1.5 开始的这个构造函数在 2.0 中被完全删除了。 & 他们似乎不是 Spring Boot 2.0 的替代品?
TestRestTemplate 模板 = new TestRestTemplate(restTemplate.getRestTemplate(),"username","password");
类: org.springframework.boot.test.web.client.TestRestTemplate
谢谢
【问题讨论】:
标签: java spring spring-boot