December 2019
Intermediate to advanced
314 pages
6h 51m
English
When running in development mode, Quarkus will automatically listen for a debugger on port 5005. You can check that the debugging is active with a basic shell command, as follows:
$ netstat -an | grep 5005 tcp 0 0 0.0.0.0:5005 0.0.0.0:* LISTEN
Now, let's undo these changes in the hello method and include another hello method, which receives a parameter to be inspected as input:
package com.packt.quarkus.chapter2;import javax.ws.rs.GET;import javax.ws.rs.Path;import javax.ws.rs.Produces;import javax.ws.rs.PathParam;import javax.ws.rs.core.MediaType;import org.slf4j.Logger;import org.slf4j.LoggerFactory;@Path("/helloworld")public class SimpleRest { protected final Logger log = LoggerFactory.getLogger(this.getClass()); ...Read now
Unlock full access