jar包导入
org.mybatis.spring.boot mybatis-spring-boot-starter2.2.2
配置扫描dao的注解 @MapperScandao类上面配置注解 @Mapperyml配置
mybatis: mapper-locations: classpath:generator/*.xml

jar包导入
org.mybatis.spring.boot mybatis-spring-boot-starter2.2.2
配置扫描dao的注解 @MapperScandao类上面配置注解 @Mapperyml配置
mybatis: mapper-locations: classpath:generator/*.xml