Skip to content

Commit 8a1483e

Browse files
committed
Update Maven debug parameters
1 parent aad6ad7 commit 8a1483e

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<id>debug</id>
8484
<configuration>
8585
<jvmArguments>
86-
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
86+
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
8787
</jvmArguments>
8888
</configuration>
8989
</execution>

src/main/java/com/vonage/sample/serversdk/springboot/ApplicationController.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,8 @@
2222
package com.vonage.sample.serversdk.springboot;
2323

2424
import org.springframework.stereotype.Controller;
25-
import org.springframework.ui.Model;
2625
import org.springframework.web.bind.annotation.GetMapping;
27-
import org.springframework.web.bind.annotation.PostMapping;
28-
import org.springframework.web.bind.annotation.RequestBody;
2926
import org.springframework.web.bind.annotation.ResponseBody;
30-
import javax.tools.*;
31-
import java.io.ByteArrayOutputStream;
32-
import java.io.PrintStream;
33-
import java.io.StringWriter;
34-
import java.net.URI;
35-
import java.net.URLClassLoader;
36-
import java.util.Arrays;
37-
import java.util.List;
3827

3928
@Controller
4029
public class ApplicationController extends VonageController {
@@ -44,4 +33,11 @@ public class ApplicationController extends VonageController {
4433
public String health() {
4534
return standardWebhookResponse();
4635
}
36+
37+
@ResponseBody
38+
@GetMapping("/_/metrics")
39+
public String metrics() {
40+
// TODO implement
41+
return health();
42+
}
4743
}

0 commit comments

Comments
 (0)