用户模块功能测试 tomcat启动报错

来源:6-9 用户模块所有功能自测试

qq_K_121

2018-05-02

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManageController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.service.IUserService com.mmall.controller.backend.UserManageController.iUserService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iUserService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.dao.UserMapper com.mmall.service.impl.UserServiceImpl.userMapper; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [G:\apache-tomcat-7.0.75\webapps\ROOT\WEB-INF\classes\com\mmall\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-datasource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'boolean' for property 'defaultAutoCommit'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${db.d    efaultAutoCommit}]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-datasource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'boolean' for property 'defaultAutoCommit'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [${db.d    efaultAutoCommit}]


写回答

3回答

慕田峪0455357

2018-05-07

请问怎么解决的啊,我也是一样的错误,求指教

0
0

qq_K_121

提问者

2018-05-02

已经解决

0
1
Geely
赞 解决了就好~
2018-05-06
共1条回复

polo哦

2018-05-02

TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'boolean' for property 'defaultAutoCommit'; 

自己检查你传的参数。。要的是boolean你传了string

0
2
慢的乌龟
回复
qq_K_121
你是怎么解决的,我和你一样的
2018-09-09
共2条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程