Tagged articles

spring-mvc

224 articles · Page 3 of 3
Programmer DD
Programmer DD
Sep 16, 2018 · Backend Development

Mastering @RequestBody and @ResponseBody in Spring MVC: A Quick Guide

This article explains how Spring MVC uses @RequestBody to deserialize JSON request bodies into Java objects and @ResponseBody to serialize Java objects back to JSON, providing clear code examples, curl testing, and notes on @RestController behavior.

REST APIRequestBodyResponseBody
0 likes · 4 min read
Mastering @RequestBody and @ResponseBody in Spring MVC: A Quick Guide
Architecture Digest
Architecture Digest
Aug 11, 2018 · Backend Development

Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications

This article explains the differences between synchronous, asynchronous, blocking and non‑blocking execution, illustrates their combinations with real‑world analogies, and provides practical guidance on applying servlet async, Spring MVC async, full‑chain async, HTTP client async and database async techniques to improve Java backend throughput and CPU utilization.

Asynchronous ProgrammingHTTP clientServlet
0 likes · 17 min read
Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications
Programmer DD
Programmer DD
Jul 3, 2018 · Backend Development

Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice

This article explains how to design and implement robust Java exception handling for business systems using Spring MVC, covering when to create custom exceptions, how to structure service and controller code, and how to centralize error responses with @ControllerAdvice for clean, maintainable backend development.

ControllerAdviceException Handlingbackend development
0 likes · 13 min read
Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice
Java Captain
Java Captain
Jun 2, 2018 · Backend Development

Understanding the SSM Framework: Integration of Spring MVC, Spring, and MyBatis

This article explains the SSM framework, detailing how Spring MVC, Spring, and MyBatis are integrated into a standard MVC architecture, describing their roles, underlying principles, and step‑by‑step guidance for building a functional feature with entities, mappers, services, controllers, and JSP views.

MVCMyBatisSSM
0 likes · 4 min read
Understanding the SSM Framework: Integration of Spring MVC, Spring, and MyBatis
Java Captain
Java Captain
Apr 27, 2018 · Information Security

Integrating Apache Shiro with Spring MVC: Detailed Example and Configuration Guide

This article provides a step‑by‑step tutorial on using Apache Shiro for authentication, authorization, session management and encryption in a Java web project, covering Maven dependencies, custom Realm implementation, Spring XML configuration, servlet filter setup, controller logic, JSP login page, demo screenshots and common pitfalls.

Apache ShiroJava Securityauthorization
0 likes · 17 min read
Integrating Apache Shiro with Spring MVC: Detailed Example and Configuration Guide
Java Captain
Java Captain
Apr 18, 2018 · Backend Development

Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC

This article explains how to implement a shopping cart in Java by handling four login scenarios, defining BuyerCart and BuyerItem beans, using JavaScript and Spring MVC controllers to add items, persisting cart data in cookies or Redis, converting objects to JSON with ObjectMapper, managing sessions, and validating stock before checkout.

RedisShopping Cartbackend development
0 likes · 17 min read
Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC
Java Captain
Java Captain
Apr 5, 2018 · Backend Development

Guide to Integrating Spring Framework, Spring MVC, and MyBatis

This article provides a step‑by‑step tutorial on building a Spring container, configuring Spring MVC with DispatcherServlet, setting up essential beans such as multipartResolver, custom handler mapping, handler adapter, view resolver, component scanning, and finally integrating MyBatis with SqlSessionFactoryBean and SqlSessionTemplate for a complete Java backend solution.

MyBatisSpringXML Configuration
0 likes · 10 min read
Guide to Integrating Spring Framework, Spring MVC, and MyBatis
Java Captain
Java Captain
Mar 28, 2018 · Backend Development

Comprehensive Guide to Spring MVC Annotations and Their Usage

This article provides an in‑depth overview of Spring MVC annotations such as @Controller, @RequestMapping, @Autowired, @Resource, @ModelAttribute, @SessionAttributes, @PathVariable, and @RequestParam, explaining their purposes, configuration methods, attribute injection rules, and advanced usage with practical code examples.

Web Frameworkbackend developmentjava
0 likes · 23 min read
Comprehensive Guide to Spring MVC Annotations and Their Usage
Programmer DD
Programmer DD
Mar 25, 2018 · Backend Development

How to Enable File Upload with Spring Cloud Feign: A Step‑by‑Step Guide

This article explains how to add multipart file‑upload support to Spring Cloud Feign by extending the client with feign‑form, configuring the server side with a Spring MVC controller, and providing a complete Java example with dependencies, client configuration, and a JUnit test.

FeignSpring Cloudbackend
0 likes · 5 min read
How to Enable File Upload with Spring Cloud Feign: A Step‑by‑Step Guide
Java Captain
Java Captain
Mar 20, 2018 · Backend Development

Implementing Pagination in a Java Web Application with Spring MVC and MyBatis

This article demonstrates how to implement page-based data retrieval in a Java web application using Spring MVC, MyBatis, and a custom Page utility class, covering the creation of the pagination class, mapper XML, DAO interfaces, service logic, controller handling, and JSP pagination controls.

MyBatisWeb Developmentbackend
0 likes · 10 min read
Implementing Pagination in a Java Web Application with Spring MVC and MyBatis
Java Captain
Java Captain
Jan 10, 2018 · Backend Development

Step-by-Step Guide to Building a Spring MVC HelloWorld Application

This tutorial walks through setting up a Spring MVC environment with Eclipse, Tomcat, and JDK, importing required JARs, configuring web.xml and springmvc.xml, writing a HelloWorld controller, creating JSP views, and handling common issues such as static resource mapping and server integration.

JSPTomcatTutorial
0 likes · 15 min read
Step-by-Step Guide to Building a Spring MVC HelloWorld Application
Programmer DD
Programmer DD
Aug 25, 2017 · Backend Development

How to Build a Logback‑ELK Log Collection Server for Spring MVC

This guide walks you through installing and configuring the ELK stack (Elasticsearch, Logstash, Kibana), setting up the required environment, creating Logback and Logstash configurations, and integrating them with a Spring MVC application to collect and visualize Java logs in Kibana.

ELKbackend developmentjava
0 likes · 13 min read
How to Build a Logback‑ELK Log Collection Server for Spring MVC
Qunar Tech Salon
Qunar Tech Salon
Dec 12, 2016 · Backend Development

Understanding Asynchronous Patterns in Spring MVC: DeferredResult, WebAsyncTask, Timeout and Exception Handling

This article explains the difference between synchronous and asynchronous request handling in web servers, demonstrates how Spring MVC leverages DeferredResult and WebAsyncTask for non‑blocking processing, and shows practical code for timeout and exception management in Java backend applications.

backenddeferredresultjava
0 likes · 10 min read
Understanding Asynchronous Patterns in Spring MVC: DeferredResult, WebAsyncTask, Timeout and Exception Handling
Java Backend Technology
Java Backend Technology
Nov 24, 2016 · Backend Development

How to Integrate QQ Login with Spring MVC: Step‑by‑Step Guide and Common Pitfalls

This guide walks through integrating QQ login into a Spring MVC Java application, covering environment setup, domain and callback configuration, SDK deployment, common pitfalls like non‑80‑port issues, configuration file settings, Maven dependency handling, SSL fixes, and provides a complete controller example.

API integrationOAuthQQ Login
0 likes · 15 min read
How to Integrate QQ Login with Spring MVC: Step‑by‑Step Guide and Common Pitfalls
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 16, 2016 · Backend Development

Mastering Dubbo: From Service Registry to Spring MVC Integration

This tutorial explains why Dubbo was created for large‑scale distributed services, how it solves URL management, load‑balancing and capacity‑planning challenges, and provides step‑by‑step instructions for integrating Dubbo with Zookeeper, dubbo‑admin, and Spring MVC using Maven and Java code.

DubboZookeeperdistributed services
0 likes · 13 min read
Mastering Dubbo: From Service Registry to Spring MVC Integration
Efficient Ops
Efficient Ops
Nov 13, 2016 · Frontend Development

Master Browser Caching: HTTP Headers, Spring MVC Code, and Nginx Configuration

This article explains how browsers cache resources, the role of HTTP response headers such as Last-Modified, Expires, Cache-Control, ETag, and Age, and provides practical examples of controlling cache behavior with Spring MVC code and detailed Nginx configuration for both static and proxy caching.

Cache-ControlNginxbrowser caching
0 likes · 21 min read
Master Browser Caching: HTTP Headers, Spring MVC Code, and Nginx Configuration
Java Backend Technology
Java Backend Technology
Oct 11, 2016 · Backend Development

Mastering Spring: Core Concepts, Modules, and Best Practices

This comprehensive guide explains what Spring is, its advantages, core modules, container architecture, bean factories, dependency injection types, bean scopes, lifecycle, AOP concepts, MVC framework, data access support, and transaction management, providing a solid foundation for Java backend development.

AOPIoCdependency injection
0 likes · 20 min read
Mastering Spring: Core Concepts, Modules, and Best Practices
Meituan Technology Team
Meituan Technology Team
Oct 1, 2016 · Backend Development

Debugging Spring MVC @Service Bean Injection Issues with JMap and JHat

The article explains how a Spring MVC service bean was duplicated across root and child WebApplicationContexts, causing a null‑injected instance that triggered a NullPointerException, and shows how JMap and JHat were used to locate the two beans and resolve the issue by adjusting component‑scan filters or removing the @Service annotation.

Debuggingbean-injectionjava
0 likes · 14 min read
Debugging Spring MVC @Service Bean Injection Issues with JMap and JHat
Qunar Tech Salon
Qunar Tech Salon
May 30, 2016 · Backend Development

Spring MVC Web Configuration and Context Initialization Process

This article explains how Spring MVC integrates web capabilities by configuring web.xml, initializing the root WebApplicationContext via ContextLoaderListener, creating a child context for DispatcherServlet, and managing the hierarchical relationship between the two contexts to share beans across a Java web application.

ContextLoaderListenerDispatcherServletWebApplicationContext
0 likes · 11 min read
Spring MVC Web Configuration and Context Initialization Process