Configure Kotlin compiler to use -java-parameters by default

See gh-12641
This commit is contained in:
Rui Figueira
2018-03-27 00:45:40 +01:00
committed by Andy Wilkinson
parent 404f22e5f9
commit 5e2726f896
8 changed files with 74 additions and 6 deletions

View File

@@ -532,11 +532,10 @@ JSON request body. When exposed via JMX, the parameters are mapped to the parame
the MBean's operations. Parameters are required by default. They can be made optional
by annotating them with `@org.springframework.lang.Nullable`.
NOTE: To allow the input to be mapped to the operation method's parameters, code
implementing an endpoint should be compiled with `-parameters`. This will happen
automatically if you are using Spring Boot's Gradle plugin or if you are using Maven
and `spring-boot-starter-parent`.
NOTE: To allow the input to be mapped to the operation method's parameters, java code
implementing an endpoint should be compiled with `-parameters`, and kotlin code should
be compiled with `-java-parameters`. This will happen automatically if you are using
Spring Boot's Gradle plugin or if you are using Maven and `spring-boot-starter-parent`.
[[production-ready-endpoints-custom-input-conversion]]