Tagged articles

ModelAndView

6 articles · Page 1 of 1
Selected Java Interview Questions
Selected Java Interview Questions
Aug 14, 2025 · Backend Development

Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques

This guide walks through creating Spring MVC controllers using @Controller, implementing the Controller interface, extending AbstractController, mapping URLs and HTTP methods, handling request parameters, returning ModelAndView, performing redirects, processing forms, uploading files, autowiring services, and adhering to the single‑responsibility principle.

ControllerModelAndViewRequestMapping
0 likes · 14 min read
Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques
Java Captain
Java Captain
May 27, 2025 · Backend Development

Resolving Thymeleaf Template Not Found Errors in Spring Boot 3.4.3 When Running as a JAR

After encountering Thymeleaf template parsing failures when packaging a Spring Boot 3.4.3 application as a JAR, the author resolves the issue by configuring the template resolver in Java code, disabling Thymeleaf settings in application.yml, and adjusting ModelAndView paths to omit leading slashes.

ModelAndViewbackend-developmenttemplate-resolver
0 likes · 3 min read
Resolving Thymeleaf Template Not Found Errors in Spring Boot 3.4.3 When Running as a JAR
Top Architect
Top Architect
Sep 11, 2021 · Backend Development

14 Tips for Writing Spring MVC Controllers

This tutorial explains fourteen practical techniques for building Spring MVC controller classes, covering annotation‑based definitions, interface implementation, extending AbstractController, URL mapping, request method handling, parameter binding, model handling, redirects, form validation, file uploads, dependency injection, and best practices such as single‑responsibility and domain‑specific controllers.

ControllerModelAndViewWeb Development
0 likes · 15 min read
14 Tips for Writing Spring MVC Controllers
Java Interview Crash Guide
Java Interview Crash Guide
Apr 29, 2021 · Backend Development

How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet

This article walks through the evolution from traditional Servlets to Spring MVC's DispatcherServlet, explaining how each component—Servlet, BaseServlet, DispatcherServlet, HandlerMapping, HandlerInterceptor, HandlerExecutionChain, ModelAndView, ViewResolver, and View—contributes to a cleaner, more modular server‑side architecture.

DispatcherServletHandlerMappingModelAndView
0 likes · 17 min read
How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2021 · Backend Development

Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling

This article explains how Spring MVC evolved from basic Servlets to a two‑level controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, ModelAndView, ViewResolver and View, and shows configuration examples that simplify server‑side development in Java web applications.

DispatcherServletHandlerMappingModelAndView
0 likes · 16 min read
Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling
Java Backend Technology
Java Backend Technology
Mar 19, 2020 · Backend Development

14 Essential Tips for Writing Spring MVC Controllers

This article presents fourteen practical techniques for building Spring MVC controllers, covering annotation usage, interface implementation, abstract class extension, URL mapping, HTTP method specification, request parameter binding, model handling, redirects, form processing, file uploads, dependency injection, servlet access, and single‑responsibility design.

ControllerModelAndViewRequestMapping
0 likes · 16 min read
14 Essential Tips for Writing Spring MVC Controllers