Jak ustawić priorytet mapowania Spring MVC?
Mam 2 odwzorowania kontrolera sprężynowego:
@Controller
public class ContentController {
@RequestMapping(value = "**/{content}.html")
public String content(@PathVariable String content, Model model, HttpServletRequest request) {
}
}
@Controller
public class HomeController {
@RequestMapping(value = "**/home")
public String home(HttpServletRequest request, Model model) {
}
}
Następujący adres URL pasuje do obu mapowań: /home.html
Chcę jednak zagwarantować, że mapowanie „treści” ZAWSZE ma pierwszeństwo przed mapowaniem „domowym”. Czy mogę to określić w jakiś sposób?