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
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐