java.lang.IllegalStateException: Ambiguous mapping found. Cannot map '****Controller' bean method

'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'itemController' bean method

解决:
mapping指向模糊
在itemController中@GetMapping()内可能有重复,或者不规范 或者指向不明。检查以下

你可能感兴趣的:(java.lang.IllegalStateException: Ambiguous mapping found. Cannot map '****Controller' bean method)