<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MVC | 정진영의 포트폴리오</title><link>https://wjdwlsdud.github.io/en/tags/mvc/</link><atom:link href="https://wjdwlsdud.github.io/en/tags/mvc/index.xml" rel="self" type="application/rss+xml"/><description>MVC</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sun, 12 Oct 2025 00:00:00 +0000</lastBuildDate><image><url>https://wjdwlsdud.github.io/media/sharing.jpg</url><title>MVC</title><link>https://wjdwlsdud.github.io/en/tags/mvc/</link></image><item><title>Spring MVC</title><link>https://wjdwlsdud.github.io/en/studying/spring/</link><pubDate>Sun, 12 Oct 2025 00:00:00 +0000</pubDate><guid>https://wjdwlsdud.github.io/en/studying/spring/</guid><description>&lt;p&gt;##From Servlets to Spring MVC: Learning the Evolution of Java Web Development
This time, I took the opportunity to trace the evolution of web applications, a technology that can be called the core of Java backend development.&lt;/p&gt;
&lt;p&gt;Why Web Applications? Most modern applications operate in a web environment. The countless services we use every day are, in fact, web applications. Java backend developers play a critical role in developing the server-side logic for these applications, and the most powerful tool used for this is the Spring Framework—specifically, Spring MVC.&lt;/p&gt;
&lt;p&gt;To gain a deep understanding of Spring MVC, which helps us develop complex web applications quickly and easily, I studied its foundational technologies step-by-step, starting from its very roots.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The Beginning of Java Web Tech: Servlets
Everything started with Servlets. A Servlet is pure Java code that receives a client&amp;rsquo;s request, processes business logic, and generates a dynamic HTML response. However, this approach had a major drawback: HTML code had to be written directly within the Java code as strings (e.g., out.println(&amp;quot;&lt;html&gt;&amp;hellip;&amp;quot;)). This made modifying the view (the UI) cumbersome and severely harmed readability.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Separating the View: JSP (JavaServer Pages)
JSP emerged to compensate for this shortcoming. JSP is a technology that allows embedding Java code within an HTML document, which made collaboration between designers and developers much easier. Thanks to this, the task of presenting the view became much more manageable.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But JSP alone was not enough. Business logic and presentation code were still mixed in a single file. As projects grew larger, this led to &amp;ldquo;spaghetti code,&amp;rdquo; which became increasingly difficult to maintain.&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;The Start of Role Separation: The MVC Pattern
To solve this problem, a design philosophy called the MVC (Model-View-Controller) pattern emerged.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Model: Manages the data and business logic.&lt;/p&gt;
&lt;p&gt;View: Manages the screen (UI) shown to the user. (JSP)&lt;/p&gt;
&lt;p&gt;Controller: Acts as the intermediary, receiving the user&amp;rsquo;s request and connecting the Model and View. (Servlet)&lt;/p&gt;
&lt;p&gt;By clearly separating these roles, the code became much more structured and reusable.&lt;/p&gt;
&lt;ol start="4"&gt;
&lt;li&gt;The Birth of Spring MVC and its Practical Use
Implementing the MVC pattern manually still involved a lot of repetitive and cumbersome work. Developers began to create MVC frameworks to make using this pattern easier, and the most successful and overwhelmingly popular of these became Spring MVC.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Spring MVC handles the complex processes required for MVC implementation on behalf of the developer, providing an environment where one can focus solely on the business logic. This study covered everything from the origins of Spring MVC to the modern techniques used in the field, allowing me to personally understand why countless companies choose Spring.&lt;/p&gt;
&lt;p&gt;I will continue to share my experiences as I conduct my own projects using these technologies. Thank you!&lt;/p&gt;
&lt;p&gt;You can check out the code I&amp;rsquo;ve studied so far via the link attached above!&lt;/p&gt;</description></item></channel></rss>