WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,591] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sysConfigController’: Unsatisfied dependency expressed through field ‘configService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sysConfigServiceImpl’: Unsatisfied dependency expressed through field ‘configMapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sysConfigMapper’ defined in file [D:\Code\ViewProjectSupport\rjow-cloud\rjow-modules\rjow-modules-system\target\classes\com\rjow\system\mapper\SysConfigMapper.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:\Code\ViewProjectSupport\rjow-cloud\rjow-modules\rjow-modules-system\target\classes\mapper\system\SysConfigMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [D:\Code\ViewProjectSupport\rjow-cloud\rjow-modules\rjow-modules-system\target\classes\mapper\system\SysConfigMapper.xml]’. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘SysConfig’. Cause: java.lang.ClassNotFoundException: Cannot find class: SysConfig

请正确配置数据库地址和mybatis包扫描,有些配置存在数据库

Logo

快速构建 Web 应用程序

更多推荐