在运行springmvc项目时报了一个错 请求解答
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在运行springmvc项目时报了一个错 请求解答相关的知识,希望对你有一定的参考价值。
14-Oct-2018 00:41:50.488 WARNING [http-apr-8080-exec-2] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping found for HTTP request with URI [/untitled22/queryBook.action] in DispatcherServlet with name 'springmvc'
参考技术A 你按ctrl+H,全文搜一下哪边用到了Assert.noNullElements()这个方法。这个方法有两种调用方式,一种是传一个对象数组(Object[] arrray),一种是传一个对象数组加一个字符串(Object[] array, String message),看报错信息好像参数不对,导致找不到这个方法追问全文搜索了没有这个方法啊
springMVC 注解 启动时报错
[ERROR][2014-12-13 15:32:54,041][org.springframework.web.servlet.DispatcherServlet]Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mvc.service.IUserService com.mvc.controller.UserController.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.mvc.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)
at java.lang.Thread.run(Thread.java:662)
@Resources
private IUserService userService;
这样写试试
以上是关于在运行springmvc项目时报了一个错 请求解答的主要内容,如果未能解决你的问题,请参考以下文章
使用maven-shade-plugin打包maven项目,项目使用spring框架,打包成jar时报错,跪求大佬,弄了好久没出?