Hellboyandso

App.java

Dec 12th, 2016
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package service;
  2.  
  3. import java.net.URI;
  4.  
  5. import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
  6. import org.glassfish.jersey.server.ResourceConfig;
  7.  
  8. public class App {
  9.    
  10.     static final String BASE_URI = "http://localhost:9022/Pizza/";
  11.  
  12.     public static void main(String[] args) {
  13.         ResourceConfig config = new ResourceConfig().packages("Opdracht5_Luik2.service");
  14.         GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), config);
  15.         System.out.println( "The service is up and running!" );
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment