springboot学习四:整合mybatis

在application.properties加入配置

## Mybatis 配置
mybatis.typeAliasesPackage=org.spring.springboot.domain
mybatis.mapperLocations=classpath:mapper/*.xml

 在启动类加入mapper的扫描

猜你喜欢

转载自www.cnblogs.com/ctsx/p/10275864.html