问题
最近,为了给大家搭建一个学习环境,开发了几个restful api
在通过id查询用户的时候,会报错
请求为:
报错:通过id查询,也会匹配到通过username查询
{"code":1002,"msg":"请求失败","data":"Ambiguous handler methods mapped for '/qzcsbj/v2/users/4': {public com.qzcsbj.demo.commons.ResultMsg com.qzcsbj.demo.controller.UserRestfulController.findById(java.lang.Integer), public com.qzcsbj.demo.commons.ResultMsg com.qzcsbj.dem