3:17:50.585 [main] ERROR org.springframework.boot.SpringApplication - Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apArticleConfigController' defined in file [D:\java项目\peach-instant\peach-instant-article\target\classes\com\gdou\article\controller\ApArticleConfigController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apArticleConfigServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apArticleConfigMapper' defined in file [D:\java项目\peach-instant\peach-instant-article\target\classes\com\gdou\article\mapper\ApArticleConfigMapper.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 [com/gdou/seata/config/DataSourceProxyConfig.class]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file?
?出现这个错误的原因是.我在mapper.xml中,resultype 敲对应的返回实体类,直接敲了跳出来的提示键值,所以没有完整的类路径,在包扫描的时候不能识别出来,错误截图,以及正确修复之后截图,如下
?总结:有些路径真的太让人崩溃了
|