Property 'mapperLocations' was not specified.怎样解决
时间: 2023-11-19 20:57:05 浏览: 183
Laravel 5.4中migrate报错: Specified key was too long error的解决
当使用MyBis-Plus时,如果出现“Property 'mapperLocations' was specifi”错误,可以按照以下两个步骤解决:\1. 在pm.xm文件中添加以下代码,以确保MyBis-Plus可以找到XML映射文件:\```\<bui>\ <resources>\ <resour>\ <irectory>sr/mai/jav</irectory>\ <includes>\ <inclu>**/*.xm</inclu>\ </includes>\ <filtering>tru</filtering>\ </resour>\ <resour>\ <irectory>sr/mai/resources</irectory>\ <includes>\ <inclu>**/*.*</inclu>\ </includes>\ </resour>\ </resources>\</bui>\```\2. 在ym配置文件中添加以下配置,以确保MyBis-Plus可以找到XML映射文件的位置:\```\mybatis-plus\ configurati\ mapper-ions classpath*mapper/**/*.xm\```\
阅读全文