GetMapping 和 PostMapping的请求

1、GetMapping

  接收一个参数(String、Long、Integer)

    接收String:

      

     接收Long

     引发一个问题 ,参数没加@RequestParm也能接收到,这是为什么呢?

     

  接收一个数组(Map)

  接受一个对象(user)

2、Post Mapping

  接收一个参数(String、Long、Integer)

  接收一个数组(Map)

  接收一个对象(user)

猜你喜欢

转载自www.cnblogs.com/hy-smart/p/12749505.html