Error creating bean with name ‘XXXController’: Injection of resource dependencies failed
程序员文章站
2024-02-21 23:33:40
...
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
推荐阅读
-
Error creating bean with name ‘XXXController’: Injection of resource dependencies failed
-
bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed
-
Error creating bean with name 'serverImpl': Injection of autowired dependencies failed;
-
Error creating bean with name ‘userServiceImpl’: Injection of resource dependencies failed
-
Error creating bean with name 'pictureServiceImpl': Injection of autowired dependencies failed;
-
Error creating bean with name 'sqlSessionFactory' defined in class path resource [config/spring/applicationContext.xml]: Invocation of init me
-
Error creating bean with name 'entityManagerFactory' defined in class path resource解决方案
-
Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource
-
Error creating bean with name 'entityManagerFactory' defined in class path resource解决方案
-
Error creating bean with name 'sqlSessionFactory' defined in class path resource [config/spring/applicationContext.xml]: Invocation of init me