Anuraag Agrawal 5 years ago
parent
commit
a0dc86ee9c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frameworks/Java/armeria/src/main/java/hello/App.java

+ 3 - 3
frameworks/Java/armeria/src/main/java/hello/App.java

@@ -17,9 +17,9 @@ public final class App {
     ServerBuilder sb = new ServerBuilder();
     ServerBuilder sb = new ServerBuilder();
 
 
     sb.http(8080)
     sb.http(8080)
-      .annotatedService("/", new HelloService())
-      .annotatedService("/", new PostgresDbService())
-      .annotatedService("/", new PostgresFortunesService())
+      .annotatedService(new HelloService())
+      .annotatedService(new PostgresDbService())
+      .annotatedService(new PostgresFortunesService())
       .decorator((delegate, ctx, req) -> {
       .decorator((delegate, ctx, req) -> {
         ctx.addAdditionalResponseHeader(HttpHeaderNames.SERVER, "armeria");
         ctx.addAdditionalResponseHeader(HttpHeaderNames.SERVER, "armeria");
         ctx.addAdditionalResponseHeader(HttpHeaderNames.DATE,
         ctx.addAdditionalResponseHeader(HttpHeaderNames.DATE,