idea寫springboot項目報錯:Ambiguous mapping. Cannot map ‘xxxController‘ method

錯誤信息:Ambiguous mapping. Cannot map ‘xxxController’ method 錯誤解釋:這個報錯是說你的xxxController中有有歧義,模糊不清,基本就是說有重複的RequestMapping了,這時檢查下controller層的代碼看看是否有重複的RequestMapping註解 錯誤解決:我當時的錯誤原因是UserController中寫了兩個:@P
相關文章
相關標籤/搜索