Skip to content

mvc:interceptors configuration is not aware of 'p' namespace [SPR-6414] #11080

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stefan Schmidt opened SPR-6414 and commented

With the new mvc:interceptors configuration option introduced by #11018 I can register interceptors:

<mvc:annotation-driven>
   <mvc:interceptors>
      <bean name="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
         <property name="paramName" value="lang" />
      </bean>
      <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor" p:paramName="theme1"/>
   </mvc:interceptors>
</mvc:annotation-driven>

While the LocaleChangeInterceptor bean definition does register the paramName property correctly, the ThemeChangeInterceptor does not. This is due to the use of the xmlns:p="http://www.springframework.org/schema/p" namespace which does not seem to be taken into account.


Issue Links:

  • ROO-385 Use new Spring MVC namespace ("is depended on by")

Referenced from: commits de1d548

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions