spring mvc常见错误
问题一: WARN  org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/card_console-api/apitest] in DispatcherServlet with name 点do请求不能到映射
解决方法:
1、可能是MVC配置问题。
2、spring3.2需要加入<mvc:annotation-driven></mvc:annotation-driven>,Controller才可以正确处理
 
springmvc选择题问题二:WARN  org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/card_console-api/WEB-INF/views/apitest/menu.jsp] in DispatcherServlet with name 'springServlet' 点do请求可以进入,但是处理完跳转不能进行。
解决方法:
将l中的<url-pattern>/*</url-pattern>改为<url-pattern>*.do</url-pattern>
 
问题二:No qualifying bean of type [pon.service.account.impl.AccountServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations
解决方法:
如果配置了component-scan,请注意是否是顺序的问题。l和spring的xml要一起观察

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。