这是 debug 代码:04-Apr-2020 14:35:00.748 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
04-Apr-2020 14:35:00.820 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
04-Apr-2020 14:35:02.828 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classifyService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.neusoft.user.dao.IClassifyDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IClassifyDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IClassifyDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IComDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IComDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IOrdersDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IOrdersDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IRelationDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IRelationDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ISCDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\ISCDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ITreeDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\ITreeDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IUserDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IUserDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
04-Apr-2020 14:35:00.820 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
04-Apr-2020 14:35:02.828 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classifyService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.neusoft.user.dao.IClassifyDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IClassifyDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IClassifyDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IComDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IComDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IOrdersDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IOrdersDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IRelationDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IRelationDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ISCDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\ISCDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ITreeDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\ITreeDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/neusoft/user/mapper/ClassifyMapper.xml
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IUserDao' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\com\neusoft\user\dao\IUserDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\IdeaProjects\book\out\artifacts\book\WEB-INF\classes\spring\ApplicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.