diff --git a/build.gradle b/build.gradle index 284ac06..b4bd5ac 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,6 @@ testImplementation 'org.springframework.boot:spring-boot-starter-test' // a dependency on Jackson Databind implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.4' - implementation 'io.vertx:vertx-core:3.5.3' } diff --git a/src/main/java/org/ntlab/acanthus_server/resources/HelloWorld.java b/src/main/java/org/ntlab/acanthus_server/resources/HelloWorld.java index f9b173d..94eb0be 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/HelloWorld.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/HelloWorld.java @@ -1,15 +1,24 @@ package org.ntlab.acanthus_server.resources; import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestMapping; import javax.ws.rs.GET; import javax.ws.rs.Path; +import java.util.Date; +@RequestMapping(produces="application/json;charset=UTF-8") @Component @Path("hello_world") public class HelloWorld { + long msec; + long responsetime; + @GET public String getHelloWorld() { - return "Hello World!!!"; + Date date = new Date(); + this.responsetime = date.getTime()-this.msec; + this.msec=date.getTime(); + return "Hello World!!!反応時間:"+this.responsetime+"time:"+this.msec; } }