ZPY博客

SpringBoot里多个url对应一个方法

写法如下:

@RequestMapping(value = { "{prodNo}/detail", "{prodNo}/{stationNo}/detail" })
    public ModelAndView detail(MstProductAddFormEntity formEntity, BindingResult result) {