| Ko

Spring Data JPA vs. JPA Key Differences

JPA’s Origins and History JPA (Java Persistence API) was first announced on May 11, 2006, through Java Community Process JSR 220 as part of the EJB 3.0 specification. It standardized many of Hibernate’s core concepts to address the complexity, heavy structure, and container dependency of EJB 2.x Entity Beans. Those beans required a Home Interface, Remote Interface, and Bean Class, along with complex XML descriptors. That overhead hurt development productivity and made testing difficult. ...

June 7, 2024 · 8 min · 1607 words · In-Jun

MVC Pattern

The Birth of the MVC Pattern and Historical Context The MVC pattern was first conceived in 1979 by Norwegian computer scientist Trygve Reenskaug while working on the Smalltalk-76 project at Xerox PARC (Palo Alto Research Center). This was part of a revolutionary effort to advance graphical user interfaces during the dawn of personal computing. Xerox PARC pioneered many modern computing concepts, including Ethernet, laser printers, and object-oriented programming. Reenskaug was exploring ways for users to effectively control and visualize complex data structures when he conceived the idea of separating data (Model), presentation (View), and control (Controller). ...

June 5, 2024 · 7 min · 1358 words · In-Jun

Spring MVC DispatcherServlet

What Is DispatcherServlet? DispatcherServlet is the core component of Spring MVC that implements the Front Controller pattern. It receives HTTP requests at a single entry point, delegates them to the appropriate controllers, and renders the results into views for the response. This centralizes common logic and lets developers focus on business logic. History and Evolution of DispatcherServlet Spring MVC emerged in 2004 with Spring Framework 1.0, establishing itself as a web framework with DispatcherServlet implementing the Front Controller pattern as an alternative to the complex servlet development approach of J2EE at that time. Initially, servlets were registered and mapped through XML-based configuration. Since Servlet 3.0 and above, Java configuration became possible through WebApplicationInitializer. With the advent of Spring Boot, auto-configuration was introduced, allowing developers to use it immediately without separate configuration. ...

June 5, 2024 · 8 min · 1646 words · In-Jun

Spring Interceptor

Spring Interceptor Basics and History Spring Interceptor is a feature first introduced in Spring Framework 2.0 in 2006. It is a mechanism that intervenes at key points—before and after controller execution and after view rendering completion—in the MVC architecture to perform common functions. Through the three methods of the HandlerInterceptor interface (preHandle, postHandle, and afterCompletion), it handles request preprocessing and postprocessing. The design separates cross-cutting concerns such as authentication, logging, execution time measurement, and common data setup from business logic. ...

June 4, 2024 · 6 min · 1250 words · In-Jun

Servlet Filter

Servlet Filter Basics and History A servlet filter is a Java component introduced in the Servlet 2.3 specification in 2001. It intercepts HTTP requests before servlets handle them and responses before they are returned to clients, making it useful for preprocessing and postprocessing tasks. This makes it easier to implement cross-cutting concerns such as authentication, logging, character encoding, and data compression in a reusable way separate from business logic. Filters are based on the Chain of Responsibility design pattern, so multiple filters can be linked together and executed in sequence. ...

June 4, 2024 · 6 min · 1116 words · In-Jun

Spring Boot Development Best Practices

History and Background of Layered Architecture Layered architecture is a design pattern that emerged in 1990s enterprise application development to support the principle of separation of concerns. It was later systematized in Martin Fowler’s “Patterns of Enterprise Application Architecture” (2002). The traditional three-layer architecture consists of the presentation layer, business logic layer, and data access layer. Spring Framework made this structure easy to implement through @Controller, @Service, and @Repository annotations, and it became the de facto standard for Java enterprise development. ...

May 25, 2024 · 6 min · 1237 words · In-Jun

Getting Started with Spring Boot

History and Background of Spring Framework Spring Framework is a Java-based enterprise application framework that first appeared in 2003. Its core ideas were introduced earlier by Rod Johnson in his 2002 book “Expert One-on-One J2EE Design and Development.” Spring emerged as an alternative to the complex and heavyweight EJB (Enterprise JavaBeans) 2.x model of the time, promoting a lighter approach built on POJOs (Plain Old Java Objects). EJB 2.x was tightly coupled to application containers, made unit testing difficult, and relied heavily on XML configuration. Spring addressed those problems by making IoC (Inversion of Control) and DI (Dependency Injection) its central concepts, which reduced coupling and improved testability. ...

May 16, 2024 · 6 min · 1213 words · In-Jun
[email protected]