Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Handle multiple routes in one Quarkus application.
import javax.ws.rs.*
import javax.ws.rs.core.MediaType
import javax.enterprise.context.ApplicationScoped
@ApplicationScoped
@Path("")
public class MultiResource {
@GET
@Path("/")
@Produces(MediaType.TEXT_PLAIN)
public String home() {
return "Home"
}
@GET
@Path("/about")
@Produces(MediaType.TEXT_PLAIN)
public String about() {
return "About"
}
}Quarkus is a Kubernetes-native Java framework designed for building cloud-native, high-performance applications. It emphasizes fast startup times, low memory usage, and developer productivity.
Origin & Creator
Quarkus was created by Red Hat in 2019 to modernize Java development for cloud-native environments.
Industrial Note
Quarkus is ideal for Java projects requiring high-performance, fast-startup, and cloud-native deployment with containerized environments.