<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Java Reference on developwith — developer tips</title>
    <link>https://developwith.com/tags/java-reference/</link>
    <description>Recent content in Java Reference on developwith — developer tips</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="https://developwith.com/tags/java-reference/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Customize Model in Swagger</title>
      <link>https://developwith.com/references/java/customize-model-swagger/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/references/java/customize-model-swagger/</guid>
      <description>&lt;p&gt;When using &lt;a href=&#34;https://springfox.github.io/springfox/&#34;&gt;Springfox&lt;/a&gt; to generate Swagger documentation for your Spring REST API, the default model definitions may not always match what you want to expose. Springfox provides &lt;code&gt;ModelPropertyBuilderPlugin&lt;/code&gt; and &lt;code&gt;ModelBuilderPlugin&lt;/code&gt; to let you customize how models and their properties appear in the Swagger UI.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-customize-models&#34;&gt;Why Customize Models?&lt;/h2&gt;&#xA;&lt;p&gt;Common reasons to customize your Swagger models:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hide internal fields (passwords, audit columns) from the API docs&lt;/li&gt;&#xA;&lt;li&gt;Add example values to properties&lt;/li&gt;&#xA;&lt;li&gt;Change the displayed type (e.g., show a &lt;code&gt;Long&lt;/code&gt; as &lt;code&gt;string&lt;/code&gt; for IDs)&lt;/li&gt;&#xA;&lt;li&gt;Add custom descriptions or validation annotations&lt;/li&gt;&#xA;&lt;li&gt;Show different models for request vs. response&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;using-modelpropertybuilderplugin&#34;&gt;Using ModelPropertyBuilderPlugin&lt;/h2&gt;&#xA;&lt;p&gt;The &lt;code&gt;ModelPropertyBuilderPlugin&lt;/code&gt; lets you modify individual properties of a model. Implement the &lt;code&gt;supports&lt;/code&gt; and &lt;code&gt;apply&lt;/code&gt; methods:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Getting Started with Java</title>
      <link>https://developwith.com/languages/java/getting-started/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/languages/java/getting-started/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.java.com/&#34;&gt;Java&lt;/a&gt; is a statically typed, object-oriented language that compiles to bytecode running on the Java Virtual Machine (JVM). It&amp;rsquo;s widely used for enterprise applications, Android development, and backend services.&lt;/p&gt;&#xA;&lt;h2 id=&#34;install-the-jdk&#34;&gt;Install the JDK&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;macOS (Homebrew):&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew install openjdk&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Ubuntu / Debian:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt-get install default-jdk&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&#xA;Download the JDK from &lt;a href=&#34;https://adoptium.net/&#34;&gt;Adoptium&lt;/a&gt; or &lt;a href=&#34;https://www.oracle.com/java/technologies/downloads/&#34;&gt;Oracle&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Verify the installation:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;java -version&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# openjdk version &amp;#34;21.0.1&amp;#34; ...&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;version-management&#34;&gt;Version Management&lt;/h2&gt;&#xA;&lt;p&gt;Use &lt;a href=&#34;https://sdkman.io/&#34;&gt;SDKMAN!&lt;/a&gt; to manage multiple Java versions:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;curl -s &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://get.sdkman.io&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; bash&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdk install java 21.0.1-tem&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sdk default java 21.0.1-tem&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Switch versions per project:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Java</title>
      <link>https://developwith.com/references/java/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/references/java/</guid>
      <description></description>
    </item>
    <item>
      <title>Java Language</title>
      <link>https://developwith.com/languages/java/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/languages/java/</guid>
      <description>&lt;p&gt;Java is a mature, statically typed language that powers enterprise systems, Android apps, and large-scale back-end services.&lt;/p&gt;&#xA;&lt;h2 id=&#34;learning-path&#34;&gt;Learning Path&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://developwith.com/languages/java/getting-started/&#34;&gt;Getting Started&lt;/a&gt;&lt;/strong&gt; — Setup, JDK, first program&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p class=&#34;next&#34;&gt;&lt;strong&gt;Next:&lt;/strong&gt; &lt;a href=&#34;https://developwith.com/languages/java/getting-started/&#34;&gt;Getting Started&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
