<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring Web on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/web/</link><description>Recent content in Spring Web on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/spring/web/index.xml" rel="self" type="application/rss+xml"/><item><title>Spring MVC Architecture: DispatcherServlet, Handler Mappings and Controllers</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/web/spring-mvc-architecture/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/web/spring-mvc-architecture/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Spring MVC&lt;/strong&gt; is Spring&amp;rsquo;s servlet-based web framework. One servlet, the &lt;strong&gt;&lt;code&gt;DispatcherServlet&lt;/code&gt;&lt;/strong&gt; (a &lt;em&gt;front controller&lt;/em&gt;), receives every request and delegates to pluggable components. They find the right controller method, convert input, call it and write the response.&lt;/p&gt;</description></item><item><title>RESTful API Design and Global Exception Handling</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/web/rest-api-design-and-error-handling/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/web/rest-api-design-and-error-handling/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;RESTful API&lt;/strong&gt; exposes &lt;strong&gt;resources&lt;/strong&gt; (orders, customers) at stable URIs and uses &lt;strong&gt;HTTP methods and status codes&lt;/strong&gt; with their standard meanings. &lt;strong&gt;Global exception handling&lt;/strong&gt; turns every error into a &lt;strong&gt;consistent, machine-readable response&lt;/strong&gt;, in Spring using &lt;code&gt;@RestControllerAdvice&lt;/code&gt; and &lt;strong&gt;RFC 9457 Problem Details&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Spring WebFlux and Reactive Programming with Project Reactor</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/web/webflux-and-reactive-programming/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/web/webflux-and-reactive-programming/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Reactive programming&lt;/strong&gt; composes &lt;strong&gt;asynchronous, non-blocking streams of data&lt;/strong&gt; with &lt;strong&gt;backpressure&lt;/strong&gt;, so a consumer controls how fast data arrives. &lt;strong&gt;Project Reactor&lt;/strong&gt; implements it with two types: &lt;strong&gt;&lt;code&gt;Mono&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/strong&gt; (0 or 1 item) and &lt;strong&gt;&lt;code&gt;Flux&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/strong&gt; (0 to N items). &lt;strong&gt;Spring WebFlux&lt;/strong&gt; is the reactive web framework built on Reactor, usually running on &lt;strong&gt;Netty&lt;/strong&gt; with a small number of event-loop threads.&lt;/p&gt;</description></item></channel></rss>