<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[javaholic - Medium]]></title>
        <description><![CDATA[Place for java lovers, learning and sharing - Medium]]></description>
        <link>https://medium.com/javaholic?source=rss----50e74da0d565---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>javaholic - Medium</title>
            <link>https://medium.com/javaholic?source=rss----50e74da0d565---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:21:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/javaholic" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quarkus in practice — Starting with Quarkus]]></title>
            <link>https://medium.com/javaholic/quarkus-in-practice-starting-with-quarkus-14a94da948fc?source=rss----50e74da0d565---4</link>
            <guid isPermaLink="false">https://medium.com/p/14a94da948fc</guid>
            <category><![CDATA[quarkus]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[Mret]]></dc:creator>
            <pubDate>Sat, 28 Nov 2020 13:38:42 GMT</pubDate>
            <atom:updated>2020-11-28T13:41:32.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quarkus in practice — Starting with Quarkus</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2FRdbztVqIWvVh7oLy0Pg.png" /></figure><blockquote>Quarkus is SUPERSONIC SUBATOMIC JAVA, A Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java libraries and standards.</blockquote><h3>Prerequisites</h3><ul><li>Less than 10 minutes in reading.</li><li>15 minus in practice</li><li>Experience on Java, Rest Services.</li></ul><h3><strong>Introduction</strong></h3><p>Recently, Quarkus has been becoming a very popular framework that wrapped Java stacks to help you quickly develop and containerize your REST services with native images that is lightweight and reactive. When combined with <a href="https://www.baeldung.com/graal-java-jit-compiler">GraalVM</a>, Quarkus will compile ahead-of-time (AOT), you can even hotload your application without restarting it. In this series, we will go step by step from creating very first services endpoint to publish them on cloud.</p><h3><strong>Create first quarkus application</strong></h3><p>Quarkus support you quickly generate project at <a href="https://code.quarkus.io/">https://code.quarkus.io/</a></p><p>You can choose either Maven or Gradle as your dependency management ( I use gradle), then tick on <strong>RESTEasy JAX-RS </strong>to create a basic rest service ( we will add more extensions later.</p><p>Click on <strong>Generate your application</strong>, download it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOdlxfzmLNHjIG2_eP4ICg.png" /></figure><p>Open your project and you can see the structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*mzjDZAvkucYMTT8kqE3nZg.png" /></figure><p>Your main code will be located in src/main/java, let’s discover ExampleResource.java, you can see quarkus generate for you an endpoint, now we will try to run it.</p><p>To start the application, open your command line and use this command:</p><p>Maven</p><blockquote>./mvnw quarkus:dev</blockquote><p>Gradle</p><blockquote>./gradlew quarkusDev</blockquote><p>By default quarkus will start application on port 8080. Go to <a href="http://localhost:8080/">http://localhost:8080</a> you will see this page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28vEjR01TlWpVn8pzoYJiQ.png" /></figure><p>Now we will access our rest endpoint, you postman or type directly on browser : <a href="http://localhost:8080/resteasy/hello">http://localhost:8080/resteasy/hello</a> . You will see “hello” printed out on the seen, so our endpoint was started successfully, pretty straightforward, right ? ;)</p><h3><strong>Hot reload</strong></h3><p>The most interesting part , hot reload in java :) . You may hear a lot about it in React, Vue, or in modern languages,.. now Quarkus brings it to Java.</p><p>Keep your application running, go to ExampleResource.java, modify the code to print out new text e.g : Hello Quarkus</p><pre>@GET<br>@Produces(MediaType.<em>TEXT_PLAIN</em>)<br>public String hello() {<br>    return &quot;hello Quarkus&quot;;<br>}</pre><p>Reload <a href="http://localhost:8080/resteasy/hello">http://localhost:8080/resteasy/hello</a> and you will see the magic. You don’t even need to restart your application to have the new code applied, everything is compiled ahead-of-time.</p><h3><strong>Conclusion</strong></h3><p>Good start with Quarkus, I will come with the next topic, how we can create a CRUD demo Rest service using Quarkus.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14a94da948fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javaholic/quarkus-in-practice-starting-with-quarkus-14a94da948fc">Quarkus in practice — Starting with Quarkus</a> was originally published in <a href="https://medium.com/javaholic">javaholic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>