最后更新于5年前
这有帮助吗?
Kotlin提供了既存类扩展额外功能的能力。Spring Boot Kotlin API使用这些扩展给既存的API添加新的Kotlin特定的便利。
提供了TestRestTemplate扩展。它类似于Spring框架提供的RestOperations。此外,扩展能够发挥Kotlin具体化参数类型的优势。
TestRestTemplate
RestOperations