Skip to content
Tagged articles

HttpMethod

2 articles · Page 1 of 1
Code Archaeology
Code Archaeology
Aug 24, 2026 · Backend Development

Why Spring Changed HttpMethod from Enum to Class: Fixing an Open Set Mismatch

Spring changed HttpMethod from enum to class in Spring 6.0 because HTTP methods form an open, extensible set per RFC 7231, making enum's closed nature a poor fit that forced workarounds like dual getters and null-returning resolve methods until a major version break allowed the fix.

API designEnum vs ClassHTTP Methods
0 likes · 7 min read
Why Spring Changed HttpMethod from Enum to Class: Fixing an Open Set Mismatch
macrozheng
macrozheng
Dec 22, 2021 · Backend Development

What’s New in Spring Framework 6.0? Key Changes and Migration Guide

Spring Framework 6.0 milestone introduces Jakarta EE migration, updates core containers and persistence, upgrades servlet baselines, removes deprecated APIs, changes controller scanning rules, and replaces the HttpMethod enum with a class, while previewing the upcoming Spring Boot 3.0 release.

HttpMethodJakarta EEServlet
0 likes · 5 min read
What’s New in Spring Framework 6.0? Key Changes and Migration Guide