Provide annotation based alternative to AbstractAnnotationConfigDispatcherServletInitializer [SPR-10359] #14991
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Oliver Drotbohm opened SPR-10359 and commented
Most of the
WebApplicationInititalizer
implementations based onAbstractAnnotationConfigDispatcherServletInitializer
look like this:It would be cool if this could be boiled down to this:
Alternatively we could introduce annotations to mark configuration classes directly:
The latter probably has the issue of ordering as looking up the static classes probably does not return them in a predefined order (in case there are multiple ones defined to get into the
@WebContext
. Also the servlet mapping definition does not fit into this model nicely. I just thought to document it as a slightly less usable alternative.No further details from SPR-10359
The text was updated successfully, but these errors were encountered: