mybatis-plus:
  mapper-locations: classpath*:mapper/**/*.xml #所有的mapper文件,所有包含的模块 
  type-aliases-package: s.iot.**.entity #所有的包别名
  configuration:
  	log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: s.iot.core.entity,s.iot.system.entity #所有的包别名
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

classpath 只扫描当前模块的类路径;

classpath* 会扫描所有依赖 JAR 包及当前模块中匹配的路径(即全模块扫描)。

配置包扫描

@MapperScan("s.iot.**.mapper")   // 扫描所有模块的 mapper 包