I'm trying to add the following annotation to an endpoint:
@GetMapping(value = arrayOf("path/1", "path/2"))
fun myEndpoint() { ... }
The Kotlin compiler complains that value only accepts String and not Array<String> while the documentation of the annotation clearly states that value accepts String[]. Any idea how to fix this?
Kotlin Version 1.1.60, Spring 4.3.13