刚接触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
求解!!!!!!
<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;"> Cannotfindclass:com.been.User写的很明白````也可能usermapper.xml里实体路劲错误
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。