Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 982 Bytes

UPGRADE-1.0.0.md

File metadata and controls

19 lines (12 loc) · 982 Bytes

UPGRADE FROM 0.7 to 1.0.0

Spring MVC configuration

RouterHandlerMapping declaration has changed. "servletPrefix" configuration is now useless and so you should remove that part from your *-servlet.xml.

<property name="servletPrefix" value="foobar" />

This is now done automatically for you at runtime, for the context path and the servlet path.

Javaconfig support

If you want full Javaconfig support - for example, adding interceptors by implementing WebMvcConfigurer methods:

  • you SHOULD NOT use the @EnableWebMvc annotation
  • you SHOULD make your javaconfig class extend RouterConfigurationSupport
  • no need to declare springmvc-router related beans in XMLs :-D