error
Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-dao.xml]: Invocation of init method failed;
nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource:
'file [E:\javaproject\Demo11\spring-01-hellospring\spring-09-transaction\target\classes\com\kuang\mapper\UserMapper.xml]';
nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file
[E:\javaproject\Demo11\spring-01-hellospring\spring-09-transaction\target\classes\com\kuang\mapper\UserMapper.xml]'.
Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException:
Could not resolve type alias 'com.kuang.pojo.User'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.kuang.pojo.User
Cause: the location of the entity class package does not correspond to the SQL mapping file correctly
Similar Posts:
- [Solved] Springboot startup error: org.springframework.beans.factory.unsatisfieddependenceexception…
- [Solved] Cause: java.lang.ClassNotFoundException: Cannot find class: xxxx
- [Solved] Error creating bean with name ‘orderController’: Unsatisfied dependency expressed through field ‘orderService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
- [Solved] Could not find resource com/cth/dao/UserImpl.xml & Single mapping file not found
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userHandler’: Injection of resource dependencies failed;
- MyBatis Error: Error building SqlSession [How to Solve]
- [Solved] Mybatis: the binding mapper cannot be found Error: Org.apache.ibatis.binding.bindingexception: invalid bound statement (not found)
- [Solved] Mybatis-config Error: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: failed to parse the connection string near ‘;useUnicode=true&
- [Solved]Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 134; Document root element “beans&quo…
- Hibernate reports an error. The configured sessionfactory cannot be found