Last active
November 12, 2016 23:36
-
-
Save ElderMael/8999506e0bba0b64a8cebff31f082ac9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
native("jvm") | |
module io.eldermael.ceylon.boot "1.0.0" { | |
import java.base "8"; | |
shared import ceylon.interop.java "1.2.1"; | |
import maven:"org.springframework.boot:spring-boot-starter-web" "1.3.0.RELEASE"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.boot { ... } | |
import org.springframework.boot.autoconfigure { ... } | |
import org.springframework.stereotype { ... } | |
import org.springframework.web.bind.annotation { ... } | |
import java.lang { JString=String } | |
import ceylon.interop.java { javaClass, javaString } | |
controller | |
enableAutoConfiguration | |
shared class SampleController() { | |
requestMapping({ "/" }) | |
responseBody | |
shared JString home() { | |
return javaString("Hello World!"); | |
} | |
} | |
shared void run() { | |
SpringApplication.run(javaClass<SampleController>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment