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个回答

fk002008
fk002008   2016.02.01 00:39

配置不对

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

仔细检查下

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

qq_31271135
qq_31271135   2016.11.07 15:16

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

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
idea spring springmvc mybatis 项目
idea spring springmvc mybatis 项目 idea spring springmvc mybatis 项目
SpringBoot +Spring +SpringMvc +Mybatis
SpringBoot +Spring +SpringMvc +Mybatis 基本架构的框架搭建
Spring集成SpringMVC/Mybatis
Spring集成SpringMVC/Mybatis,有初始化脚本
spring springMVC mybatis maven
spring springMVC mybatis maven 框架整合附带数据库
SpringMVC学习(四)——Spring、MyBatis和SpringMVC的整合
SpringMVC学习(四)——Spring、MyBatis和SpringMVC的整合
spring springMVC mybatis
java spring springMVC mybatis 框架 搭建的简单环境
springMVC spring mybatis
springMVC spring mybatis 整合 实现登录 基本增删改查
Spring SpringMVC Mybatis 整合
1.首先导入所需的 jar 包 2.写三层 model层 package com.sm.model; public class userInfo { private String username; public String getUsername() { return username; } public void setUsername(String username)
@springmvc +spring + mybatis + oracle开发
步骤一;导包 步骤二:web.xml配置springmvc核心控制器,以及utf-8编码格式配置 步骤三  数据库中建立相关表 步骤四:实体类,以及相关映射文件 步骤五:配置src下的mybatis.xml配置文件 步骤六:在src下建立spring.xml配置文件,并在里
spring springmvc mybatis maven整合
spring springmvc mybatis maven整合