在启动类中加上注解

@ComponentScan(basePackages = {""cn.smartpilot""}) 如果域名不一样 则需要把要扫描的包放在{ }里面
@MapperScan({"cn.smartpilot.yangjiang.mapper","cn.smartpilot.common.mapper"})注意有{ }
在启动类中加上注解
@ComponentScan(basePackages = {""cn.smartpilot""}) 如果域名不一样 则需要把要扫描的包放在{ }里面
@MapperScan({"cn.smartpilot.yangjiang.mapper","cn.smartpilot.common.mapper"})注意有{ }