报错处理:“Ambiguous handler methods mapped for ...”
程序员文章站
2022-03-01 13:37:38
...
这个错误是指Controller类中有两个方法的指定地址有问题,在把参数直接放到url中传到后台时,程序并不能区分具体用哪一个。
解决:改写一下请求的地址
如果上面的查询地址不添加“s”加以区分,就会报错。
推荐阅读
-
java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path
-
swagger 报错 Ambiguous handler methods mapped for ‘/v3/api-docs/‘
-
报错处理:“Ambiguous handler methods mapped for ...”
-
Ambiguous handler methods mapped for HTTP path
-
Ambiguous handler methods mapped 模棱两可的方法
-
Ambiguous handler methods mapped for 'xxx'的解决办法
-
java.lang.IllegalStateException: Ambiguous handler methods mapped for ‘/emp/lisi‘: {public com.weiji