public static void main(String[] args) throws IOException { ResourceConfig config = new ResourceConfig().packages("br.com.alura.loja"); URI uri = URI.create("http://localhost:8080/"); HttpServer server = GrizzlyHttpServerFactory.createHttpServer(uri, config); System.out.println("Servidor rodando"); System.in.read(); server.stop(); }
}
dá para subir com o tomcat