Skip to content

Instantly share code, notes, and snippets.

Last active July 30, 2019 14:53
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ivargrimstad/2d2fee6193e33bc554b7 to your computer and use it in GitHub Desktop.
Microservices in Java - Swarm example
public class ApplicationConfig extends Application {
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
return resources;
public class HelloResource {
public Response greet() {
return Response.ok("Hello World").build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment