首页 > 其他 > 详细

下面的错误

时间:2016-07-12 00:00:08      阅读:193      评论:0      收藏:0      [点我收藏+]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userService‘: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private win.qieqie.dao.UserMapper win.qieqie.service.impl.UserServiceImpl.userMapper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper‘ defined in file [C:\Users\Administrator\workspace\pool\target\classes\win\qieqie\dao\UserMapper.class]: Cannot resolve reference to bean ‘sqlSessionFactory‘ while setting bean property ‘sqlSessionFactory‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource [mybatis-spring.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 ‘org.springframework.core.io.Resource[]‘ for property ‘mapperLocations‘; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:win/qieqie/mapping/*.xml]: class path resource [win/qieqie/mapping/] cannot be resolved to URL because it does not exist

 

 

 

127.0.0.1不行,只能写localhost

连接orcal的数据库时,只能用localhost

下面的错误

原文:http://www.cnblogs.com/renboqie/p/5662039.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!