使用分模快开发的时候,没有代码报错,也在依赖里引用了mapper接口的模块,但是运行时候就报bean自动装配报错
这个是报错的代码
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'mapper.bookMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
这个是部分代码,mapper接口的代码是正常运行的原本,但是分出去以后就不行了,
mybatisx的插件是能正常导向的,接口导向xml文件是没问题的,我开发是用注解开发,几乎没有xml配置。麻烦各位了