-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
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:
- Update documentation with MVC config view resolution examples [SPR-11989] #16605 Update documentation with MVC config view resolution examples
Issue Links:
- Allow configuring view resolution through the MVC Java config [SPR-9533] #14167 Allow configuring view resolution through the MVC Java config ("is duplicated by")
- Add mvc:annotation-driven Tiles Configuration [SPR-6556] #11222 Add mvc:annotation-driven Tiles Configuration ("supersedes")
Referenced from: commits dfcc1d7, 52f1be7, 10a4c2c, a26b1ef, 5e1a5c8, f54cee4, 92402e7, 5bc7937, cc7e8f5
2 votes, 7 watchers