---
title: "SpringMVC启动报错解决办法"
author: "vortexchoo"
date: "2015-04-15T11:36:48Z"
tags: []
categories: ["编程语言"]
slug: "springmvc"
draft: false
lastmod: "2015-04-15T15:33:20Z"
id: 2202642
url: "https://vortexchoo.iteye.com/blog/2202642"
---

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

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

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

一般有可能引起的原因：

 

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

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