SpringBoot里多个url对应一个方法

  • A+
所属分类:SpringBoot

写法如下:

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

 

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: