下面的错误

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

posted @ 2016-07-11 23:32  仁波切  阅读(245)  评论(0编辑  收藏  举报