Created
November 12, 2016 23:18
-
-
Save ElderMael/ff31a0ed63dccbe2530558b4c525d336 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
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
Ceylon <3