Error creating bean with name ‘XXXController’: Injection of resource dependencies failed
Error creating bean with name ‘xxxController’: Injection of resource dependencies failed看看你是不是改mapper.java文件的时候,没有在mapper.xml里边做相应的修改Exception encountered during context initialization - cancelling re
·
Error creating bean with name ‘xxxController’: Injection of resource dependencies failed
看看你是不是改mapper.java文件的时候,没有在mapper.xml里边做相应的修改
Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'loungeController': Injection of resource dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'loungeServiceImpl': Injection of resource dependencies failed;
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'loungeMapper' defined in file
[D:\bishe\paidroom\target\classes\com\randolflu\paidroom\dao\LoungeMapper.class]:
Unsatisfied dependency expressed through bean property 'sqlSessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in class path resource
[org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception;
nested exception is org.springframework.core.NestedIOException:
Failed to parse mapping resource: 'file [D:\bishe\paidroom\target\classes\mapper\LoungeMapper.xml]';
nested exception is org.apache.ibatis.builder.BuilderException:
Error parsing Mapper XML. The XML location is 'file [D:\bishe\paidroom\target\classes\mapper\LoungeMapper.xml]'.
Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException:
Could not resolve type alias 'VARCHAR'. Cause: java.lang.ClassNotFoundException: Cannot find class: VARCHAR
更多推荐
已为社区贡献1条内容
所有评论(0)