Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package service;
- import java.net.URI;
- import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
- import org.glassfish.jersey.server.ResourceConfig;
- public class App {
- static final String BASE_URI = "http://localhost:9022/Pizza/";
- public static void main(String[] args) {
- ResourceConfig config = new ResourceConfig().packages("Opdracht5_Luik2.service");
- GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), config);
- System.out.println( "The service is up and running!" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment