Spring mvc Ambiguous mapping found. Cannot map controller bean method

前端 未结 4 1954
悲&欢浪女
悲&欢浪女 2020-12-15 15:39

I am trying to build an app which can list some values from the database and modify, add, delete if necessary using Spring 4 and i receive the following error(only if the \"

4条回答
  •  生来不讨喜
    2020-12-15 16:09

    If the issue is about ambigious method, probably the @RequestMapping should be the issue. Change from @RequestMapping(name =...) to @RequestMapping(value =...)

    @RequestMapping(name = "xxx.htm", method = RequestMethod.GET)
    

    to

    @RequestMapping(value = "xxx.htm", method = RequestMethod.GET)
    

提交回复
热议问题