2 c mengjiao c_mengjiao 于 2016.01.29 16:02 提问

各位大神,跪求解答啊 springMVC+spring+mybatis 2C

springMVC4.2.4+spring4.2.4+mybatis3 整合过程中tomcat启动过程中打印各种no url 求解啊 各位大神
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'userController': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.event.internalEventListenerProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.event.internalEventListenerFactory': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'mappingJacksonHttpMessageConverter': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.web.servlet.view.InternalResourceViewResolver#0': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'multipartResolver': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'environment': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'systemProperties': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'systemEnvironment': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'servletConfig': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'messageSource': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'applicationEventMulticaster': no URL paths identified
[org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping]Rejected bean name 'lifecycleProcessor': no URL paths identified
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Finished creating instance of bean 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Creating instance of bean 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Looking for URL mappings in application context: WebApplicationContext for namespace 'springMvc-servlet': startup date [Fri Jan 29 15:54:30 CST 2016]; parent: Root WebApplicationContext
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showUser/{id}] onto handler 'userController'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showUser/{id}.*] onto handler 'userController'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showUser/{id}/] onto handler 'userController'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showInfo/{userId}] onto handler 'userController'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showInfo/{userId}.*] onto handler 'userController'
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Returning cached instance of singleton bean 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Mapped URL path [/userController/showInfo/{userId}/] onto handler 'userController'
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.event.internalEventListenerProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.event.internalEventListenerFactory': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'mappingJacksonHttpMessageConverter': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.web.servlet.view.InternalResourceViewResolver#0': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'multipartResolver': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'environment': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'systemProperties': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'systemEnvironment': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'servletConfig': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'messageSource': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'applicationEventMulticaster': no URL paths identified
[org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping]Rejected bean name 'lifecycleProcessor': no URL paths identified

7个回答

lahand
lahand   2016.01.29 16:04

你的controller 没写 @ResquestMapping 吗,你的代码贴出看看

rui888
rui888   Ds   Rxr 2016.01.29 16:10

你的请求没有找到对应的处理类看看userController 对应的有没有匹配上,是不是配置出错。

Yiran8935
Yiran8935   2016.01.29 17:49

把controller的代码等贴出来还有配置文件

jhfsdfs
jhfsdfs   2016.01.29 18:06

没写映射吧,应该要添加映射

breakorcontinue
breakorcontinue   2016.01.30 16:28

没有找到路径:userController/showUser/{id}
确定类上是否有@Controller
确定方法上是否有@RequestMapping

fk002008
fk002008   2016.02.01 00:39

配置不对

使用注解进行配置的时候你的@userController是否有定义

仔细检查下

qq_31271135
qq_31271135   2016.11.07 15:16

这个问题解决了吗?我也想知道答案,遇上这个问题挺久了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!