Java & Backend
Jakarta Servlet Layered MVC vs Spring Boot REST Architecture: Lessons from Two Java Builds
Comparing raw Servlet/JSP + Oracle JDBC against Spring Boot 3.4 + JPA + React 19

Summary: Engineering comparison drawn directly from building both the College Student Management System (Jakarta Servlet/Oracle DB) and Sakura Style E-Commerce Platform (Spring Boot 3.4/React 19).
Two Real Java Codebases, Two Architectural Styles
Building enterprise Java systems across two distinct architectures highlights exact trade-offs between explicit lifecycle control and framework productivity:
1. Classic Layered MVC: Jakarta Servlet + JSP + Oracle JDBC
In College Student Management System, every HTTP concern is wired explicitly in web.xml:
- 3 Servlet Filters:
CharacterEncodingFilter(UTF-8),AuthenticationFilter, andAuthorizationFilter(ADMIN/STAFF). - 11 Servlets + 8 Services + 8 DAOs: Plain
PreparedStatementqueries against 7 Oracle tables and 7 sequences (SMS_STUDENT_SEQ, etc.). - 28 JSP Views: Server-rendered HTML with JSTL
c:outescaping andHttpOnlysession cookies.
2. Decoupled API + SPA: Spring Boot 3.4 + React 19 + PostgreSQL
In Sakura Style E-Commerce, responsibilities split cleanly at the HTTP JSON boundary:
- Stateless Security: Spring Security + JWT token validation per request instead of Tomcat server sessions.
- ORM & Validation: Spring Data JPA / Hibernate + Bean Validation + OpenAPI (
springdoc) schema generation. - Independent Frontend: React 19 SPA communicating over Axios.
Key Architectural Takeaways
Mastering Servlets, Filters, and raw SQL PreparedStatement execution makes Spring Boot internals (DispatcherServlet, OncePerRequestFilter, transaction boundaries) transparent rather than magical.