请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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

3回答

慕田峪0455357 2018-05-07 01:08:13

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

0 回复 有任何疑惑可以回复我~
提问者 qq_K_121 2018-05-02 20:45:04

已经解决

0 回复 有任何疑惑可以回复我~
  • Geely #1
    赞 解决了就好~
    回复 有任何疑惑可以回复我~ 2018-05-06 20:49:49
polo哦 2018-05-02 20:39:24

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

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

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_K_121 #1
    已经解决啦
    回复 有任何疑惑可以回复我~ 2018-05-02 20:44:38
  • 慢的乌龟 回复 提问者 qq_K_121 #2
    你是怎么解决的,我和你一样的
    回复 有任何疑惑可以回复我~ 2018-09-09 09:26:22
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信