Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public

错误显示:

Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public java.lang.String com.jeeplus.modules.res.web.ResourceController.list(com.jeeplus.modules.res.entity.Resource,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.springframework.ui.Model), public java.lang.String com.jeeplus.modules.res.web.ResourceController.rflist(com.jeeplus.modules.res.entity.Resource,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.springframework.ui.Model)} 


Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public_第1张图片Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public_第2张图片Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public_第3张图片


@RequestMapping(value = {"list", ""})

这个意思是说可以使用前面,也可使用后面,当两个一样为后面时,就找的相同没法识别。

最后改为这个就正确了:

Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/runyu/a/res/resource': {public_第4张图片

你可能感兴趣的:(Java)