Property ‘mapperLocations’ was not specified.
在yml配置
mybatis-plus的配置项中,mapper-locations的路径需要以classpath*: 开头。
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
mybatis的配置项中,mapper-locations的路径需要以classpath: 开头。
mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
就是一个 ---- * ----的区别