Spring+mybatis+SpringMVC构建项目报错

开心的苦水 发布于 2016/07/06 17:43
阅读 784
收藏 0

刚接触Springle,做个实验。配置文件感觉没错,但总是报错警告: Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'loadBalanceConnectionGroupManagerMBean' defined in URL [jar:file:/F:/Program%20Files/tomcat/wtpwebapps/shop/WEB-INF/lib/mysql-connector-java-5.1.34.jar!/com/mysql/jdbc/jmx/LoadBalanceConnectionGroupManagerMBean.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [F:\Program Files\tomcat\wtpwebapps\shop\WEB-INF\classes\com\mapping\UserMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.been.User'.  Cause: java.lang.ClassNotFoundException: Cannot find class: com.been.User; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [F:\Program Files\tomcat\wtpwebapps\shop\WEB-INF\classes\com\mapping\UserMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.been.User'.  Cause: java.lang.ClassNotFoundException: Cannot find class: com.been.User

求解!!!!!!

加载中
0
丶Lion
丶Lion
 Cannot find class: com.been.User
丶Lion
丶Lion
写的很明白````
0
skhuhu
skhuhu
也可能usermapper .xml 里实体路劲错误
返回顶部
顶部