Skip to content

Deprecate mvc XML configuration namespace #34063

@bclozel

Description

@bclozel

The MVC XML configuration namespace (like <mvc:annotation-driven>, <mvc:resources> and <mvc:cors>) has been supported for a long time and naturally phased out over the years in favor of the Java configuration model and Spring Boot auto-configurations in general. It is defined in https://www.springframework.org/schema/mvc/spring-mvc.xsd.

This configuration model is lagging behind in the 6.x generation already and we don't intend to invest in this space to close that gap.

As of Spring Framework 7.0, we intend to declare this namespace as deprecated. We should log WARN messages if it's being used and look into providing hints at the IDE level if possible.

Note: this is selectively being considered for the <mvc:* namespace and other namespaces like <bean> (as in https://www.springframework.org/schema/beans/spring-beans.xsd) are not deprecated.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions