diff --git a/micrometer/src/main/java/org/wildfly/quickstarts/micrometer/JaxRsApplication.java b/micrometer/src/main/java/org/wildfly/quickstarts/micrometer/JaxRsApplication.java index a3f6fde6de..38b05c38b2 100644 --- a/micrometer/src/main/java/org/wildfly/quickstarts/micrometer/JaxRsApplication.java +++ b/micrometer/src/main/java/org/wildfly/quickstarts/micrometer/JaxRsApplication.java @@ -3,6 +3,6 @@ import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; -@ApplicationPath("/") +@ApplicationPath("/rest") public class JaxRsApplication extends Application { } diff --git a/micrometer/src/main/webapp/index.html b/micrometer/src/main/webapp/index.html new file mode 100644 index 0000000000..cca4317735 --- /dev/null +++ b/micrometer/src/main/webapp/index.html @@ -0,0 +1,28 @@ +<!-- + JBoss, Home of Professional Open Source + Copyright 2024, Red Hat, Inc. and/or its affiliates, and individual + contributors by the @authors tag. See the copyright.txt in the + distribution for a full listing of individual contributors. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!DOCTYPE html> +<html> +<title>micrometer</title> +<body> +<div style="text-align:center"> + + <h1>Hello There! Welcome to WildFly!</h1> + <h2>The micrometer application has been deployed and running successfully.</h2> + +</div> +</body> + +</html> diff --git a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java index 54d5ba845b..aa6ff18229 100644 --- a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java +++ b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java @@ -34,10 +34,10 @@ public void makeSeveralApplicationRequests() throws IOException, InterruptedExce String applicationUrl = BasicRuntimeIT.getApplicationUrl(); final HttpClient client = BasicRuntimeIT.getHttpClient(); - final HttpRequest requestPrime = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/prime/13")).GET().build(); - final HttpRequest requestHighest = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/prime/highest")).GET().build(); - final HttpRequest requestDuplicates = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/duplicates")).GET().build(); - final HttpRequest requestDuplicates2 = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/duplicates2")).GET().build(); + final HttpRequest requestPrime = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/prime/13")).GET().build(); + final HttpRequest requestHighest = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/prime/highest")).GET().build(); + final HttpRequest requestDuplicates = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/duplicates")).GET().build(); + final HttpRequest requestDuplicates2 = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/duplicates2")).GET().build();