org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [j**a.lang.String] to required type [org.springframework.core.io.Resource[]] for property ‘mapperLocations’; nested exception is j**a.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:com/fruitslaesplatform/mapper/*.xml]: class path resource [com/fruitslaesplatform/mapper/] cannot be resolved to URL because it does not exist
一直报这个。求解,直接使用下载资源里的源代码也是这个问题
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [j**a.lang.String] to required type [org.springframework.core.io.Resource[]] for property ‘mapperLocations’; nested exception is j**a.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:com/fruitslaesplatform/mapper/*.xml]: class path resource [com/fruitslaesplatform/mapper/] cannot be resolved to URL because it does not exist
我想知道user表是干嘛用的?不应该是一个用户对应自己的零售商吗?为什么不关联用户呢?哪个用户登录上去都是同样的零售商,这不科学
转载一个京东某店铺上读者对本书的评论:
传智播客,2015年那批,燕青教的,视频的内容和这本书的框架部分没差别,请问作者这是怎么回事?书是不错,但是这样的抄袭别人就有点意思了。分数打错了,只想给一分的
京东店铺地址http://item.jd.com/25408234856.html#none
4.1.5代码报错谁能帮忙看一下
DEBUG [main] - Logging initialized using ‘class org.apache.ibatis.logging.slf4j.Slf4jImpl’ adapter.
DEBUG [main] - Logging initialized using ‘class org.apache.ibatis.logging.log4j.Log4jImpl’ adapter.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
Exception in thread “main” j**a.lang.ClassCastException: j**a.lang.Integer cannot be cast to j**a.lang.Class
at org.apache.ibatis.reflection.factory.DefaultObjectFactory.instantiateClass(DefaultObjectFactory.j**a:76)
at org.apache.ibatis.reflection.factory.DefaultObjectFactory.create(DefaultObjectFactory.j**a:50)
at cn.com.mybatis.test.CartObjectFactory.create(CartObjectFactory.j**a:13)
at cn.com.mybatis.test.ObjectFactoryTest.main(ObjectFactoryTest.j**a:25)
应该像其他书籍那样,把资料放在光盘中