SpringBoot-Kotlin-Dynamic-Compiler
- git clone https://github.com/KingFalse/springboot-kotlin-dynamic-compiler.git
- mvn package
- java -jar SpringBoot-Kotlin-Dynamic-Compiler.jar
- Enjoy!
curl --location --request POST 'http://127.0.0.1:8080/exec' \
--header 'Content-Type: text/plain' \
--data-raw '
package me.kagura.dynamiccompiler.script
import me.kagura.dynamiccompiler.script.Worker
class KaguraWorker : Worker {
override fun doWork(): String {
return "https://www.kagura.me/"
}
}
'