web项目出现如下错误,

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'bestSalesControrller' method 

public com.ioperate.bi.dto.ReturnResult com.ioperate.bi.controller.BestSalesControrller.login(javax.servlet.http.HttpServletRequest)


慕后端3352169
浏览 1176回答 1
1回答

qq_那一眸的风情_03788798

1你查找方法的controller层的扫描注解的路径是否错误<context:component-scan base-package="包名.controller"></context:component-scan>2找找BEstSalesController控制层是否添加注解@controller
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java