Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9344

Update documentation with regards to overrid RequestMappingHandlerMapping and RequestMappingHandlerAdapter when using the MVC namespace

    XMLWordPrintable

    Details

    • Last commented by a User:
      true

      Description

      When using `mvc:annotation-driven` automagic, there must be an option to override default beans of RequestMappingHandlerMapping and RequestMappingHandlerAdapter.

      https://github.com/rstoyanchev/spring-mvc-31-demo/issues/4#issuecomment-5338158

      On the link above, we fell to problem, that even if we instantiate our own subclass of RequestMappingHandlerMapping, and put it in right order, before the processing of default bean instance, we're not able to override it, nor configure it.
      Which is causing problems for example to implement @RequestCondition.

      In XML, there should be possibility to ref our own implementation of these beans:

      1. RequestMappingHandlerMapping
      2. RequestMappingHandlerAdapter
      3. ExceptionHandlerExceptionResolver

      Not forcing us to use BeansPostProcessor, as an ugly solution to reconfigure default given beans.

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            marek.sebera Marek Sebera
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 1 week, 4 days ago