diff --git a/funds/src/main/kotlin/com/pepe/rest/resteasyjackson/FundResource.kt b/funds/src/main/kotlin/com/pepe/rest/resteasyjackson/FundResource.kt index 6f28ad522..ae5f07ed7 100644 --- a/funds/src/main/kotlin/com/pepe/rest/resteasyjackson/FundResource.kt +++ b/funds/src/main/kotlin/com/pepe/rest/resteasyjackson/FundResource.kt @@ -4,19 +4,13 @@ import javax.enterprise.inject.Default import javax.enterprise.context.ApplicationScoped import javax.ws.rs.core.Response.* import javax.ws.rs.core.Response -import mu.KotlinLogging +import org.jboss.logging.Logger import java.util.* -import java.time.LocalDateTime - -import javax.ws.rs.GET -import javax.ws.rs.POST -import javax.ws.rs.DELETE -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.Produces +import javax.ws.rs.* import javax.ws.rs.core.MediaType +import java.time.LocalDateTime // ./mvnw compile quarkus:dev @@ -49,6 +43,8 @@ class FundService { } @Path("/") +@Produces(MediaType.APPLICATION_JSON) +@Consumes(MediaType.APPLICATION_JSON) class FundResource { companion object { diff --git a/funds/src/main/resources/application.properties b/funds/src/main/resources/application.properties index 7fafb315b..4398b34b3 100644 --- a/funds/src/main/resources/application.properties +++ b/funds/src/main/resources/application.properties @@ -1,3 +1,5 @@ quarkus.log.console.json.date-format=YYYY-MM-dd HH:mm:ss quarkus.log.console.json.exception-output-type=detailed-and-formatted quarkus.log.console.json.pretty-print=true +dev.quarkus.http.port=3033 +quarkus.http.port=3033 \ No newline at end of file