编程语言
首页 > 编程语言> > Property ‘mapperLocations‘ was not specified.

Property ‘mapperLocations‘ was not specified.

作者:互联网

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

就是一个 ---- * ----的区别

标签:xml,mapper,项中,classpath,locations,mybatis,mapperLocations,Property,was
来源: https://blog.csdn.net/qq_43396514/article/details/121225375