Skip to content

Commit

Permalink
#15 #18 Correct logging in json adn correct port number
Browse files Browse the repository at this point in the history
  • Loading branch information
José Antonio Córdoba Gómez committed Jan 8, 2021
1 parent b9142d4 commit f40286f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,6 +43,8 @@ class FundService {
}

@Path("/")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
class FundResource {

companion object {
Expand Down
2 changes: 2 additions & 0 deletions funds/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f40286f

Please sign in to comment.