@MapperScan扫描问题

122 阅读1分钟
@MapperScan({"com.relax.**.mapper"})

一.如果里面是一个*,标识扫描的包的间隔只能是一个举例

比如

@MapperScan({"com.relax.*.mapper"})

可以扫描到com.relax.a.mapper目录和com.relax.b.mapper, 扫描不到com.relax.a.b.mapper

二.如果里面是两个*,标识扫描的包的间隔是多个

扫描到com.relax.a.b.mapper