<?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/categories/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/categories/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>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>
