<?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[Stories by Rui Menoita on Medium]]></title>
        <description><![CDATA[Stories by Rui Menoita on Medium]]></description>
        <link>https://medium.com/@rui.menoita?source=rss-2117e1d97eff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q7uv5OHf2nKW7uosO2rSvg.jpeg</url>
            <title>Stories by Rui Menoita on Medium</title>
            <link>https://medium.com/@rui.menoita?source=rss-2117e1d97eff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:25:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rui.menoita/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Microservices Make More Sense in an AI World]]></title>
            <link>https://medium.com/@rui.menoita/why-microservices-make-more-sense-in-an-ai-world-ac5dd0b5cc04?source=rss-2117e1d97eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac5dd0b5cc04</guid>
            <dc:creator><![CDATA[Rui Menoita]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 12:19:47 GMT</pubDate>
            <atom:updated>2026-03-13T12:39:11.427Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i88R_HEFd7TxLlUVU3tL3w.png" /></figure><p>There has been a lot of debate over the years around <strong>monoliths, modular monoliths, monorepos, and microservices</strong>.</p><p>And to be fair, in the past, that discussion was mostly about <strong>infra complexity</strong>, <strong>team structure</strong>, <strong>deployment pain</strong>, and <strong>engineering maturity</strong>.</p><p>But I think the conversation changes a lot once you add <strong>AI</strong> into the picture.</p><p>Because in an AI world, architecture is no longer only about how the system runs. It is also about <strong>how easy the system is to understand, change, review, and evolve</strong>.</p><p>And that is where, in my view, <strong>microservices start winning by a lot</strong> for complex companies.</p><p>This is not me saying <strong>every app should be split into 20 services</strong>. That would be silly.</p><p>What I am saying is that for <strong>larger systems</strong>, with <strong>multiple teams</strong>, <strong>many product surfaces</strong>, <strong>high throughput</strong>, and <strong>different domains moving at different speeds</strong>, microservices are a much better fit for the way <strong>AI-assisted engineering actually works</strong>.</p><h3>In the AI world, context is everything</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c-2HMUPcgJmvdQZYnPlXPA.png" /></figure><p>One of the biggest things people still underestimate is that <strong>context and tokens are king</strong>.</p><p>AI tools are useful, but they are not magic. They work best when:</p><ul><li>the problem is <strong>well scoped</strong></li><li>the codebase is <strong>understandable</strong></li><li>the ownership is <strong>clear</strong></li><li>the amount of irrelevant context is <strong>low</strong></li></ul><p>That is exactly where large monoliths and oversized monorepos start hurting.</p><p>Because even if the change is small, the AI often has to reason through:</p><ul><li>unrelated modules</li><li>shared abstractions</li><li>framework glue</li><li>hidden coupling</li><li>old utilities nobody wants to touch</li><li>side effects in parts of the system that should not even matter for the task</li></ul><p>That is <strong>context pollution</strong>.</p><p>And the more polluted the context is, the worse the output gets. More confusion, more vague answers, more shallow reasoning, more hallucinations, and more time wasted guiding the tool back to the actual problem.</p><p>With <strong>microservices</strong>, the working set is just much smaller.</p><p>You are giving the engineer and the AI <strong>a tighter boundary</strong>, a clearer domain, and a repo that is actually relevant to the task at hand.</p><p>That is a big deal.</p><h3>Self-contained repos are a strength, not a weakness</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seFUDGfCOUROBUZsDqJsbg.png" /></figure><p>A lot of people say, “but in a monorepo everything is in one place.”</p><p>That sounds good in theory.</p><p>In practice, once the codebase gets large enough, <strong>everything being in one place becomes part of the problem</strong>.</p><p>Because then every change lives near a huge amount of code that has nothing to do with it.</p><p>A <strong>self-contained repo</strong> is much more aligned with how both <strong>humans and AI</strong> work.</p><p>You want a repo to contain:</p><ul><li>the code for that domain</li><li>the tests for that domain</li><li>the infra and CI concerns for that domain</li><li>the docs and conventions for that domain</li></ul><p>That makes it <strong>legible</strong>.</p><p>It also makes it far easier for AI to operate with confidence, because it is not trying to infer signal from a pile of unrelated noise.</p><p>And there is also a point here that I think people miss.</p><p>If you really need <strong>system-wide visibility</strong>, you can still have it.</p><p>You can literally have <strong>a directory in your environment with all the microservice repos cloned into it</strong>, and the AI can read that as if it is one broad codebase when needed. So you get <strong>cross-system reasoning</strong> without paying the full price of a monorepo.</p><p>That is the important distinction.</p><p>You still get the ability to inspect the full landscape, but you avoid the worst parts of having everything physically entangled in one giant repo:</p><ul><li>giant PRs</li><li>excessive coupling</li><li>noisy CI</li><li>broad accidental dependencies</li><li>unclear ownership</li><li>unrelated context leaking into every task</li></ul><p>So the idea that “microservices lose global visibility” is just not true. You can have <strong>global visibility without global entanglement</strong>.</p><h3>Contracts matter more now than ever</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15x2-AHe10LUQRMb3a1Ltg.png" /></figure><p>Another reason microservices fit the AI world better is that they force something healthy: <strong>clear contracts</strong>.</p><p>And honestly, this is how humans already work too.</p><p>If I need to use another service, I do not need to understand every nut and bolt inside it. I just need to know:</p><ul><li>what contract it exposes</li><li>how to call it</li><li>what it returns</li><li>what happens when it fails</li><li>what guarantees it gives me</li></ul><p>That is enough.</p><p>The same applies to AI.</p><p>When boundaries are explicit, the model performs better. When boundaries are hidden inside internal modules, shared code, and accidental conventions, the model has to guess too much.</p><p><strong>Explicit APIs, events, schemas, and versioned interfaces reduce context needs and reduce ambiguity.</strong></p><p>That is not just good software design. In an AI world, it is a huge productivity multiplier.</p><p>Because once the contract is clear, the AI does not need to load half the system to help with one change.</p><h3>Governance is simply cleaner with microservices</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-sgzUefj9DJsyIhBCN29Q.png" /></figure><p>This is another one that I think matters a lot more than people admit.</p><p>In a large monolith or monorepo, when you touch multiple sensitive parts of the system, the PR often becomes a blob.</p><p>Too many files, too many concerns mixed together, too many reviewers trying to understand parts of the diff that are not really their domain.</p><p>That slows things down and also makes review quality worse.</p><p>With microservices, governance becomes much more natural.</p><p>If a broader change is needed, you can split it into <strong>multiple smaller PRs</strong>, one per service.</p><p>That means:</p><ul><li>each PR stays focused</li><li>each reviewer only reviews what matters for their service</li><li>feedback is more accurate</li><li>ownership is clearer</li><li>risk is easier to reason about</li><li>approvals become faster and more reliable</li></ul><p>This is especially important in an AI world, because AI will make it easier to generate code faster.</p><p>If code generation gets cheaper, then <strong>review quality and governance become even more important</strong>.</p><p>And I would much rather review <strong>three small service-specific PRs</strong> than one giant cross-domain blob where the important parts are buried in noise.</p><p>Small scoped repos plus clear ownership is simply a better governance model.</p><h3>Flexibility and adaptability are the whole game</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0g_1bGSSJ9iVgc6pUXoaPg.png" /></figure><p>In the coming years, I think this will matter even more than people expect.</p><p>The companies that benefit most from AI are not just the ones writing code faster.</p><p>They are the ones that can <strong>adapt faster</strong>, <strong>test faster</strong>, and <strong>try new things with less fear</strong>.</p><p>That is where tight coupling becomes a real disadvantage.</p><p>If your company is too coupled, even a small proof of concept starts becoming painful:</p><ul><li>too many dependencies</li><li>too many approvals</li><li>too much fear of breaking unrelated things</li><li>too much need to understand system-wide side effects</li></ul><p>That kills speed.</p><p>With microservices, you can try something new in a much more contained way.</p><p>A team can build a new service, test a new capability, integrate a new model, or run a POC that has nothing to do with the rest of the platform without dragging the whole system into it.</p><p>That kind of flexibility is not a luxury anymore. It is a competitive advantage.</p><h3>Ownership gets dramatically better</h3><p>One of the hidden costs of big monoliths is fake ownership.</p><p>A team may nominally own an area, but in reality the code path is spread across shared code, shared infra, shared pipelines, shared conventions, and shared risk.</p><p>So everybody touches everything, and nobody fully owns anything.</p><p>Microservices make ownership much more concrete.</p><p>A service has:</p><ul><li>a team</li><li>a contract</li><li>a repo</li><li>a deploy pipeline</li><li>alerts</li><li>operational responsibility</li></ul><p>That clarity changes behavior.</p><p>And it also makes AI tools more useful, because the domain boundary is not theoretical. It exists in the actual shape of the system.</p><h3>Monolith vs microservices in an AI world</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qZD61otLyl-4jnVR" /></figure><p>To be balanced, I do think there are cases where microservices do not make sense.</p><p>If the system is still small, the domain is simple, the team is small, and the operational overhead would clearly outweigh the benefits, then yes, a monolith or modular monolith can still be the right call.</p><p>But for <strong>complex systems</strong>, for companies operating at scale, with multiple teams and multiple independently evolving product areas, I think the balance changes.</p><p>Because microservices give you:</p><ul><li><strong>smaller blast radius</strong></li><li><strong>better ownership</strong></li><li><strong>cleaner contracts</strong></li><li><strong>better repo-level context for AI</strong></li><li><strong>more flexible CI/CD</strong></li><li><strong>safer independent evolution</strong></li><li><strong>better review and governance</strong></li><li><strong>clearer domain boundaries</strong></li></ul><p>And all of that becomes more valuable, not less, once AI is involved.</p><p>A monolith may still be easier to start.</p><p>But that is not the same thing as being better for the future.</p><h3>The modular monolith argument has blind spots</h3><p>I understand why many engineers like modular monoliths.</p><p>They often give you:</p><ul><li>one deployment unit</li><li>simpler infra</li><li>easier local setup</li><li>easier atomic refactors across modules</li></ul><p>Those are real strengths.</p><p>But I think there are blind spots in the argument, especially when people try to stretch that model too far:</p><h3>“We can keep things modular inside one repo”</h3><p>You can, to a point.</p><p>But the issue is that <strong>logical boundaries are weaker than physical boundaries</strong>.</p><p>Inside one big repo, and especially inside one big deployable system, the pressure toward coupling always comes back:</p><ul><li>shared helpers appear everywhere</li><li>shortcuts get taken</li><li>internal modules start depending on each other too freely</li><li>ownership becomes blurry</li><li>one team’s convenience becomes another team’s dependency</li></ul><p>Over time, the boundary exists more in slides than in reality.</p><p>Microservices make the boundary real.</p><h3>“A modular monolith is easier for AI because everything is together”</h3><p>This sounds good, but I actually think it misses the real issue.</p><p>AI does not benefit from “everything being together.”</p><p>AI benefits from <strong>relevant context being easier to isolate</strong>.</p><p>That is not the same thing.</p><p>And again, if needed, you can still place all microservice repos under one folder locally and let the AI inspect them together. So you still get the broader system view, but without the codebase itself becoming one giant coupled mass.</p><p>That gives you the best of both worlds:</p><ul><li><strong>service isolation by default</strong></li><li><strong>system-wide visibility when needed</strong></li></ul><p>That is much healthier than forcing every problem through one massive repo.</p><h3>“Governance is easier in one place”</h3><p>I would argue the opposite once the system is large enough.</p><p>In one place, large changes tend to become <strong>large mixed diffs</strong>.</p><p>With microservices, governance is sharper because the unit of change is smaller and more aligned with ownership.</p><p>That makes both human review and AI-assisted review much better.</p><h3>Final thought</h3><p>I do not think the takeaway is “microservices are always better.”</p><p>That would be too simplistic.</p><p>The real takeaway is that in an AI world, the qualities that matter most are:</p><ul><li><strong>clear boundaries</strong></li><li><strong>small relevant context</strong></li><li><strong>strong contracts</strong></li><li><strong>better governance</strong></li><li><strong>independent evolution</strong></li><li><strong>real ownership</strong></li><li><strong>flexibility to adapt fast</strong></li></ul><p>And for complex companies, microservices fit that reality much better than large shared codebases do.</p><p>In the past, architecture discussions were mostly about <strong>runtime trade-offs</strong>.</p><p>Now they are also about <strong>reasoning trade-offs</strong>.</p><p>And in that world, I believe microservices are not just an infra pattern.</p><p>They are a much better operating model for how modern engineering will actually be done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac5dd0b5cc04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add a Dynamic Sitemap to Your Spring Boot App in 5 Minutes]]></title>
            <link>https://medium.com/@rui.menoita/how-to-add-a-dynamic-sitemap-to-your-spring-boot-app-in-5-minutes-e4ef32b507f9?source=rss-2117e1d97eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ef32b507f9</guid>
            <dc:creator><![CDATA[Rui Menoita]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 18:23:55 GMT</pubDate>
            <atom:updated>2026-02-10T18:45:01.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*rjyLyKjymbmmaCYzCyUAMw.png" /></figure><p>Every website that cares about SEO needs a sitemap. It tells search engines which pages exist, how often they change, and which ones matter most. Yet in the Spring Boot ecosystem, there’s been no simple, annotation-driven solution until now.</p><p>In this post, I’ll show you how to generate a fully compliant sitemap from your Spring Boot controllers with a single dependency and a few annotations.</p><h3>The Problem</h3><p>If you’ve ever built a Spring Boot website, you’ve probably dealt with sitemaps in one of these ways:</p><ol><li><strong>A static </strong><strong>sitemap.xml file</strong> that you manually update every time you add a page (and inevitably forget to update)</li><li><strong>Custom boilerplate code</strong> that generates XML, handles escaping, manages thread safety, and needs to be maintained</li><li><strong>Ignoring it entirely</strong> and hoping Google figures it out</li></ol><p>None of these is great. Option 1 doesn’t scale. Option 2 is reinventing the wheel. Option 3 hurts your SEO.</p><h3>The Solution: sitemap-spring-boot-starter</h3><p>Add one dependency:</p><pre>// build.gradle.kts<br>implementation(&quot;net.menoita:sitemap-spring-boot-starter:1.0.0&quot;)</pre><p>Or with Maven:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;net.menoita&lt;/groupId&gt;<br>    &lt;artifactId&gt;sitemap-spring-boot-starter&lt;/artifactId&gt;<br>    &lt;version&gt;1.0.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>Set your base URL:</p><pre>sitemap:<br>  base-url: https://www.mysite.com</pre><p>Annotate your endpoints:</p><pre>@Controller<br>public class PageController {<br><br>    @Sitemap(priority = 1.0, changefreq = ChangeFrequency.DAILY)<br>    @GetMapping(&quot;/&quot;)<br>    public String home() { return &quot;home&quot;; }<br>    <br>    @Sitemap(priority = 0.8, changefreq = ChangeFrequency.WEEKLY)<br>    @GetMapping(&quot;/about&quot;)<br>    public String about() { return &quot;about&quot;; }<br>    <br>    @Sitemap(priority = 0.7, changefreq = ChangeFrequency.MONTHLY)<br>    @GetMapping(&quot;/contact&quot;)<br>    public String contact() { return &quot;contact&quot;; }<br>}</pre><p>Start your application and visit /sitemap.xml:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://www.mysite.com/&lt;/loc&gt;<br>    &lt;changefreq&gt;daily&lt;/changefreq&gt;<br>    &lt;priority&gt;1.0&lt;/priority&gt;<br>  &lt;/url&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://www.mysite.com/about&lt;/loc&gt;<br>    &lt;changefreq&gt;weekly&lt;/changefreq&gt;<br>    &lt;priority&gt;0.8&lt;/priority&gt;<br>  &lt;/url&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://www.mysite.com/contact&lt;/loc&gt;<br>    &lt;changefreq&gt;monthly&lt;/changefreq&gt;<br>    &lt;priority&gt;0.7&lt;/priority&gt;<br>  &lt;/url&gt;<br>&lt;/urlset&gt;</pre><p>That’s it. Three annotations, zero boilerplate.</p><h3>Auto-Scan Mode: Even Less Work</h3><p>Don’t want to annotate every endpoint? Enable auto-scan and the library includes every @GetMapping automatically:</p><pre>sitemap:<br>  base-url: https://www.mysite.com<br>  auto-scan: true</pre><p>Use @SitemapExclude to opt out specific endpoints:</p><pre>@RestController<br>public class ApiController {<br><br>    @GetMapping(&quot;/products&quot;)        // included automatically<br>    public String products() { ... }<br><br>    @SitemapExclude<br>    @GetMapping(&quot;/internal/health&quot;) // excluded<br>    public String health() { ... }<br>}</pre><h3>Dynamic Content: Blog Posts, Products, and More</h3><p>Static pages are only half the story. Most sites have dynamic content, blog posts, product pages, user profiles, where the URLs come from a database.</p><p>The SitemapHolder bean lets you add URLs programmatically:</p><pre>@Component<br>public class BlogSitemapLoader {<br><br>    private final SitemapHolder sitemapHolder;<br>    private final BlogRepository blogRepository;<br>    public BlogSitemapLoader(SitemapHolder sitemapHolder, BlogRepository blogRepository) {<br>        this.sitemapHolder = sitemapHolder;<br>        this.blogRepository = blogRepository;<br>    }<br>    @EventListener(ApplicationReadyEvent.class)<br>    public void loadBlogUrls() {<br>        blogRepository.findAll().forEach(blog -&gt;<br>            sitemapHolder.add(new SitemapUrl(<br>                &quot;https://www.mysite.com/blog/&quot; + blog.getSlug(),<br>                blog.getUpdatedAt(),<br>                ChangeFrequency.WEEKLY,<br>                0.7<br>            ))<br>        );<br>    }<br>}</pre><p>You can also remove URLs, clear the sitemap, or add URLs in bulk. The SitemapHolder is fully thread-safe, so you can modify the sitemap from anywhere, a scheduled job, an event listener, a REST endpoint, without worrying about concurrency.</p><h3>Multilingual Sites with hreflang</h3><p>If your site serves content in multiple languages, search engines need to know which URL corresponds to which language. This is done with hreflang alternate links.</p><p>The library handles this automatically. Just configure your locales:</p><pre>sitemap:<br>  base-url: https://www.mysite.com<br>  locales:<br>    - en<br>    - pt<br>    - fr<br>  locale-url-pattern: path_prefix<br>  default-locale: en<br>  omit-default-locale-in-url: true</pre><p>The generated XML includes proper &lt;xhtml:link&gt; elements:</p><pre>&lt;url&gt;<br>  &lt;loc&gt;https://www.mysite.com/about&lt;/loc&gt;<br>  &lt;xhtml:link rel=&quot;alternate&quot; hreflang=&quot;en&quot; href=&quot;https://www.mysite.com/about&quot;/&gt;<br>  &lt;xhtml:link rel=&quot;alternate&quot; hreflang=&quot;pt&quot; href=&quot;https://www.mysite.com/pt/about&quot;/&gt;<br>  &lt;xhtml:link rel=&quot;alternate&quot; hreflang=&quot;fr&quot; href=&quot;https://www.mysite.com/fr/about&quot;/&gt;<br>  &lt;xhtml:link rel=&quot;alternate&quot; hreflang=&quot;x-default&quot; href=&quot;https://www.mysite.com/about&quot;/&gt;<br>&lt;/url&gt;</pre><p>Notice how the default locale (en) omits the /en/ prefix since omit-default-locale-in-url is true. The x-default entry tells search engines which URL to show when no locale matches.</p><h3>Query Parameter Pattern</h3><p>Not all sites use path prefixes for locales. If your site uses query parameters like ?lang=fr, just change the pattern:</p><pre>sitemap:<br>  base-url: https://www.mysite.com<br>  locales:<br>    - en<br>    - pt<br>    - fr<br>  locale-url-pattern: query_param<br>  locale-query-param-name: lang<br>  default-locale: en</pre><p>This generates URLs like <a href="https://www.mysite.com/about?lang=fr.">https://www.mysite.com/about?lang=fr.</a></p><h3>Per-Endpoint Locale Override</h3><p>Some pages might only be available in certain languages. Override the locales at the annotation level:</p><pre>@Sitemap(priority = 0.9, locales = {&quot;en&quot;, &quot;pt&quot;})<br>@GetMapping(&quot;/local-event&quot;)<br>public String localEvent() { return &quot;event&quot;; }</pre><p>This endpoint only generates hreflang entries for English and Portuguese, regardless of the global locale configuration.</p><h3>Scaling: Sitemap Index</h3><p>The sitemap protocol limits each sitemap file to 50,000 URLs. When your site exceeds this limit, the library automatically switches to sitemap index mode:</p><ul><li>/sitemap.xml serves a &lt;sitemapindex&gt; pointing to sub-sitemaps</li><li>/sitemap-1.xml, /sitemap-2.xml, etc. serve the actual URL entries</li></ul><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;sitemapindex xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&gt;<br>  &lt;sitemap&gt;<br>    &lt;loc&gt;https://www.mysite.com/sitemap-1.xml&lt;/loc&gt;<br>  &lt;/sitemap&gt;<br>  &lt;sitemap&gt;<br>    &lt;loc&gt;https://www.mysite.com/sitemap-2.xml&lt;/loc&gt;<br>  &lt;/sitemap&gt;<br>&lt;/sitemapindex&gt;</pre><p>You can configure the threshold via sitemap.max-urls-per-sitemap.</p><h3>Under the Hood</h3><p>A few design decisions worth mentioning:</p><p><strong>Thread safety.</strong> The SitemapHolder uses a ConcurrentHashMap for URL storage, volatile fields for the cached XML strings, and a ReentrantReadWriteLock for XML generation. This means reads are lock-free, and regeneration doesn&#39;t block concurrent requests.</p><p><strong>Lazy vs Eager initialization.</strong> By default, the library scans your endpoints eagerly at startup (ApplicationReadyEvent). If you prefer to defer the cost to the first request, set sitemap.initialization: lazy.</p><p><strong>No external dependencies.</strong> The XML is generated with StringBuilder, no DOM parsers, no XML libraries, no JAXB. This keeps the library lightweight and the output predictable.</p><p><strong>Full protocol compliance.</strong> All XML follows the <a href="https://www.sitemaps.org/protocol.html">sitemaps.org specification</a>: proper namespaces, W3C Datetime formatting, entity escaping, and UTF-8 encoding.</p><h3>Full Configuration Reference</h3><ul><li>Property — Default — Description</li><li>sitemap.enabled — true — Enable/disable the library</li><li>sitemap.base-url — required — Base URL of your site</li><li>sitemap.auto-scan — false — Auto-include all controller endpoints</li><li>sitemap.auto-scan-methods — GET — HTTP methods to include in auto-scans</li><li>sitemap.default-priority — 0.5 — Default URL priority</li><li>sitemap.default-changefreq — UNSET — Default change frequency</li><li>sitemap.initialization — EAGER — EAGER or LAZY</li><li>sitemap.max-urls-per-sitemap — 50000 — Threshold for sitemap index mode</li><li>sitemap.locales — empty — Locale codes for hreflangs</li><li>sitemap.locale-url-pattern — PATH_PREFIX — PATH_PREFIX or QUERY_PARAM</li><li>sitemap.locale-query-param-name — lang — Query param name for locales</li><li>sitemap.default-locale — null — Default locale for x-default</li><li>sitemap.omit-default-locale-in-url — false — Omit locale in URL for default locale</li></ul><h3>Get Started</h3><pre>implementation(&quot;net.menoita:sitemap-spring-boot-starter:1.0.0&quot;)</pre><ul><li><strong>GitHub:</strong> <a href="https://github.com/Menoita99/sitemap-spring-boot-starter">github.com/Menoita99/sitemap-spring-boot-starter</a></li><li><strong>Maven Central:</strong> <a href="https://central.sonatype.com/artifact/net.menoita/sitemap-spring-boot-starter">central.sonatype.com/artifact/net.menoita/sitemap-spring-boot-starter</a></li></ul><p>Java 17+ · Spring Boot 3.x &amp; 4.x · MIT License</p><p>Contributions, issues, and feedback are welcome on GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ef32b507f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>