异常:java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/app/userInfoMaint/getProvince.do'

调试代码时出现异常:java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/app/userInfoMaint/getProvince.do';当时就郁闷了,好像之前没怎么见过,后来发现原来是后台有两个“app/userInfoMaint/getProvince.do”,并且它们路径相同。

异常:java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/app/userInfoMaint/getProvince.do'

异常:java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/app/userInfoMaint/getProvince.do'

解决方法很简单,相信大家都知道,就是将后台两个方法请求路径名区分开。

由上可知,锁定问题是解决问题的关键!

上一篇:浅谈canvas中的拖尾效果


下一篇:AOP拦截日志类,抛异常:java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode