springboot里多个url对应一个方法

  • A+
所属分类:Java

---
title: SpringBoot里多个url对应一个方法
date: 2018-08-23 12:00:28
categories: SpringBoot
tags:
- url
- 方法
---

写法如下:

@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: