mapper-locations掃描多個(gè)路徑,中間以,分開, 如果mapper.xml在源碼包下,配置成classpath*開頭比較好使 1 2 3 4 5 6 7 8 9 10 mybatis: mapper-locations: classpath*:mapper/*.xml,classpath*:com/urthink/upfs/**/*Mapper.xml type-aliases-package: com.urthink.upfs.springbootmybatis.entity ...
www.dbjr.com.cn/article/2183...htm 2025-5-28