I found the example source code in the docs that has a difference between java and kotlin.

The docs is here , the java source code is here , and the kotlin source code is here.

Maybe, the kotlin example is wrong, so I fixed it.

Comment From: pivotal-cla

@ningenMe Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@ningenMe Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@ningenMe thank you for making your first contribution to Spring Boot.