dector
07/26/2017, 4:16 AMfun main(args: Array<String>) {
val server = embeddedServer(
Netty,
port = 1289,
watchPaths = listOf("path.to.server.ServerKt.main"),
module = Application::myApp)
server.start(wait = true)
}
private fun Application.myApp() {
routing {
// ...
}
}
Exception in thread "main" java.lang.UnsupportedOperationException: Packages and file facades are not yet supported in Kotlin reflection. Meanwhile please use Java reflection to inspect this class: class path.to.server.ServerKt