项目场景:
项目启动报错:
Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘cloudxxxxSyncController’ method
com.xxxx.xxxx.xxxx.controller.cloudxxxxSyncController#detail(RequestContext)
to {GET [/v1/warehouse]}: There is already ‘cloudxxxxSyncController’ bean method
com.xxxx.xxxx.xxxx.controller.cloudxxxxSyncController#sync(Long, String, RequestContext) mapped.
原因分析:
提示: 多个映射路径相同导致的
解决方案:
更改路径保证唯一即可