SpringMVC启动报错解决办法

负责向测试机部署新的war包时报了下面这样的错误

java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'xxxxController' bean method。

从详细信息中来看应该是接口的映射值冲突。

一般有可能引起的原因:

映射值 与其他 controller的映射值一致,导致冲突。

曾经修改过 比如类名,在编译过程中没有更新,曾经的class文件仍然保留,导致问题发生。

猜你喜欢

转载自vortexchoo.iteye.com/blog/2202642