Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Grapes([
- @Grab(group='com.sparkjava', module='spark-core', version='2.7.2'),
- @Grab(group='org.slf4j', module='slf4j-simple', version='1.7.25', scope='test')
- ])
- import static spark.Spark.*;
- class Main {
- public static void main(String[] args) {
- port(8280)
- get("/truc/*", { req, res -> "Hello World" })
- }
- }
- Main.main()
Add Comment
Please, Sign In to add comment