Tagged articles

WebMvcConfigurer

8 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Mar 29, 2026 · Backend Development

Custom SpringBoot Interceptor for Login Authentication

This article explains how to implement a SpringBoot HandlerInterceptor to perform login authentication, configure it with a whitelist, return a unified 401 JSON response, and extend it with Redis token validation, advanced usage, and a comparison with servlet filters.

HandlerInterceptorLogin AuthenticationRedis
0 likes · 9 min read
Custom SpringBoot Interceptor for Login Authentication
Java Captain
Java Captain
Jun 9, 2025 · Backend Development

How to Use @PathVariable and Map Static Resources in Spring Boot

This guide explains how to use @PathVariable to capture URL segments, configure static resource mapping for local files, and centralize path values in Spring Boot applications, providing code examples for request mapping, resource handler registration, and property injection.

JavaPathVariableSpring Boot
0 likes · 3 min read
How to Use @PathVariable and Map Static Resources in Spring Boot
Shepherd Advanced Notes
Shepherd Advanced Notes
Aug 23, 2024 · Backend Development

Which Spring MVC Extension Points Parse Parameters and Handle Return Values?

This article explains the purpose and usage of Spring MVC’s HandlerMethodArgumentResolver and HandlerMethodReturnValueHandler extension points, demonstrates how to implement custom argument resolvers and return‑value handlers, discusses common pitfalls such as handler ordering, and shows how to replace the default processors to achieve unified request and response processing.

HandlerMethodArgumentResolverHandlerMethodReturnValueHandlerJava
0 likes · 16 min read
Which Spring MVC Extension Points Parse Parameters and Handle Return Values?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 25, 2022 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12

This guide explains how Spring Boot 2.4.12 automatically configures Spring MVC components such as view resolvers, converters, and message handlers, and shows how to customize them via WebMvcConfigurer, WebMvcRegistrations, HttpMessageConverters, and @JsonComponent, including code examples for full control over the Web MVC setup.

HttpMessageConvertersSpring BootWebMvcConfigurer
0 likes · 8 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12
Code Ape Tech Column
Code Ape Tech Column
May 10, 2021 · Backend Development

Mastering CORS in Spring: 5 Ways to Enable Cross‑Origin Requests

This article explains why browsers enforce the same‑origin policy, defines cross‑origin requests, outlines the restrictions of non‑same‑origin interactions, and presents five practical methods—including a global CorsFilter, WebMvcConfigurer, @CrossOrigin annotation, manual header setting, and a custom filter—to implement CORS in Java Spring backends.

CORSCross-OriginJava
0 likes · 8 min read
Mastering CORS in Spring: 5 Ways to Enable Cross‑Origin Requests
Code Ape Tech Column
Code Ape Tech Column
Oct 8, 2020 · Backend Development

Extending and Fully Controlling Spring MVC in Spring Boot

This article explains how to extend Spring MVC in Spring Boot by implementing WebMvcConfigurer, how the default auto‑configuration works, and why using @EnableWebMvc fully takes over MVC configuration, while also providing code examples and resource links for deeper learning.

Backend DevelopmentEnableWebMvcMVC
0 likes · 8 min read
Extending and Fully Controlling Spring MVC in Spring Boot