这个问题是配置文件中mapper-locations没配置,或没正确配置。
如果同时使用Mybatis和Mybtis-plus应该对该配置项进行配置,否则会提示错误。
mybatis:
mapper-locations: classpath:**/mapper/*.xml
mybatis-plus:
mapper-locations: classpath:**/mapper/*.xml
这个问题是配置文件中mapper-locations没配置,或没正确配置。
如果同时使用Mybatis和Mybtis-plus应该对该配置项进行配置,否则会提示错误。
mybatis:
mapper-locations: classpath:**/mapper/*.xml
mybatis-plus:
mapper-locations: classpath:**/mapper/*.xml