我有以下文件夾結構:@RequestMapping多頁
WEB-INF/
- 頁/
----針對home.jsp
---- admin.jsp
- --- admin2.jsp
---- admin3.jsp
而且我有以下控制器@RequestMapping:
@RequestMapping(value = "/", method = RequestMethod.GET)
public ModelAndView defaultPage() {
ModelAndView model = new ModelAndView();
model.setViewName("home");
return model;
}
@RequestMapping(value = "/admin**", method = RequestMethod.GET)
public ModelAndView adminPage() {
ModelAndView model = new ModelAndView();
model.setViewName("admin");
return model;
}
我需要爲admin2.jsp添加第三個@Requestmapping?而且一個爲admin3.jsp的?等等?或者我可以將這些頁面分組嗎?