Skip to content

Allow configuring view resolution through the MVC Java config and the MVC Namespace [SPR-7093] #11753

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-7093 and commented

It would be cool to have ViewResolvers like InternalResourceViewResolver available to be declared via the MVC namespace. I imagine something similar to the <mvc:interceptors /> element already present, where you provide either predefined subelements or plain bean definitions. Although one could argue that the benefit is rather limited it completes the picture of configurable MVC components nicely, especially as the order can then be determined explicitly.

Maybe one can also ease the use of ContentNegotiatingViewResolver which is not the most approachable class in regards of configuration currently ;).

I'll probably provide a draft implementation as patch in a few days.


Sub-tasks:

Issue Links:

Referenced from: commits dfcc1d7, 52f1be7, 10a4c2c, a26b1ef, 5e1a5c8, f54cee4, 92402e7, 5bc7937, cc7e8f5

2 votes, 7 watchers

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