springboot + mybatis + dubbo项目启动报错,求解决问题方法
Description:
Field mapper in com.springbootprovider.serviceimpl.BaseService required a bean of type ‘tk.mybatis.mapper.common.Mapper’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘tk.mybatis.mapper.common.Mapper’ in your configuration.
项目目录:
公共BaseService 代码部分:
package com.springbootprovider.serviceimpl;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
@