JavaWeb学习笔记-springmvc-11-RequestMapping

@RequestMapping
定义对应的url,进行处理器映射使用

  • 窄化请求映射
    • 根路径(类对应requestmapping)+子路径(方法对应requestmapping)
  • 限制http请求,可以同时get和post
    • @RequestMapping(value=”/xxx”,method={RequestMethod.POST,RequestMethod.GET})

猜你喜欢

转载自blog.csdn.net/weixin0605/article/details/80807603
今日推荐