2017-12-24 17:42:09,615:WARN main (AbstractApplicationContext.java:551) - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.yichao.yichaoadmin.mapper.user.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2017-12-24 17:42:09,616:WARN main (DisposableBeanAdapter.java:374) - Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
2017-12-24 17:42:09,618:INFO main (DirectJDKLog.java:179) - Stopping service [Tomcat]
2017-12-24 17:42:09,637:INFO main (AutoConfigurationReportLoggingInitializer.java:101) - Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-12-24 17:42:09,711:ERROR main (LoggingFailureAnalysisReporter.java:42) - ***************************
APPLICATION FAILED TO START
***************************Description:Field userMapper in com.yichao.yichaoadmin.service.user.impl.UserServiceImpl required a bean of type 'com.yichao.yichaoadmin.mapper.user.UserMapper' that could not be found.
Action:Consider defining a bean of type 'com.yichao.yichaoadmin.mapper.user.UserMapper' in your configuration.Disconnected from the target VM, address: '127.0.0.1:61973', transport: 'socket'Process finished with exit code 1
2017-12-24 17:42:09,616:WARN main (DisposableBeanAdapter.java:374) - Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession
2017-12-24 17:42:09,618:INFO main (DirectJDKLog.java:179) - Stopping service [Tomcat]
2017-12-24 17:42:09,637:INFO main (AutoConfigurationReportLoggingInitializer.java:101) - Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-12-24 17:42:09,711:ERROR main (LoggingFailureAnalysisReporter.java:42) - ***************************
APPLICATION FAILED TO START
***************************Description:Field userMapper in com.yichao.yichaoadmin.service.user.impl.UserServiceImpl required a bean of type 'com.yichao.yichaoadmin.mapper.user.UserMapper' that could not be found.
Action:Consider defining a bean of type 'com.yichao.yichaoadmin.mapper.user.UserMapper' in your configuration.Disconnected from the target VM, address: '127.0.0.1:61973', transport: 'socket'Process finished with exit code 1
解决方案 »
- 如何不改变现有代码中加入日志功能?
- 请教一个JAVA泛型的问题
- 谁知道FCK3.6.1在java中的配置方法
- 在JSP页面中实现对SQL Server数据库的备份与恢复
- 【急】hibernate no persistent classes found for query class:
- 有去传智播客报3月26日的j2ee精品就业班的吗
- 如何固定若干PC, 除固定的PC 外,不能 Login, 提高安全性
- 如何使用 JPCAP包
- 学习中: drools. 一个基于规则的引擎。
- 请教eclipse中的问题,环境eclipse+Lomboz+Tomcat5.0
- 在一个方法中,每次往不同properties中写入键值对时,都需要重新new一个对象吗
- 实体类中枚举属性的应用
这句话是关键,99%是由于实体类映射关系没有配好
第二个问题:数据配置