Guest User

Untitled

a guest
May 25th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @Grapes([
  2. @Grab(group='com.sparkjava', module='spark-core', version='2.7.2'),
  3. @Grab(group='org.slf4j', module='slf4j-simple', version='1.7.25', scope='test')
  4. ])
  5.  
  6. import static spark.Spark.*;
  7.  
  8. class Main {
  9.  
  10. public static void main(String[] args) {
  11. port(8280)
  12. get("/truc/*", { req, res -> "Hello World" })
  13. }
  14.  
  15. }
  16.  
  17. Main.main()
Add Comment
Please, Sign In to add comment