|
|
|
|
|
by bloat
4420 days ago
|
|
That's not much different here to the hello world in the article. Lets see... You import some stuff... check.
You create an instance... check.
You define a route... check.
You define a method to implement the route... check.
You return a String... well the example returns a map, and converts it to JSON.
You start the app in a main method... check. Sure the java is a little more wordy and there are some extra params which are not used (the IDE would fill those in automatically when you implement the interface), but the complexity is the just same as far as I can see. |
|