码迷,mamicode.com
首页 > 其他好文 > 详细

下面的错误

时间:2016-07-12 00:00:40      阅读:187      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!