报错:Ambiguous mapping

来源:互联网 发布:c语言三角形判断 编辑:程序博客网 时间:2024/06/05 04:51

java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'testController' method 

public java.lang.String wt.maven.example.controller.TestController.sessionDestroy(javax.servlet.http.HttpServletRequest)
to {[/test/session]}: There is already 'testController' bean method


原因:该控制器下有两个相同的url,导致spring容器不知道该url映射到哪个方法。

0 0