# MyBatis配置
mybatis:
# 搜索指定包别名,用于扫描domain如果换位置就写指定的位置,如果不换位置其他位置也有domain需要扫描的,就在后面加,号。下面同理
typeAliasesPackage: com.ruoyi.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
yml中MyBatis配置解释
最新推荐文章于 2024-04-27 17:30:34 发布