> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/iv.-spring-boot-features/47.-kotlin-support/47.3-kotlin-api/47.3.2-extensions.md).

# 47.3.2 扩展

Kotlin[扩展](https://kotlinlang.org/docs/reference/extensions.html)提供了既存类扩展额外功能的能力。Spring Boot Kotlin API使用这些扩展给既存的API添加新的Kotlin特定的便利。

提供了`TestRestTemplate`扩展。它类似于Spring框架提供的`RestOperations`。此外，扩展能够发挥Kotlin具体化参数类型的优势。
