91名师指路-头部
91名师指路

Reason: The elements [mybatis-plus.mapper-locations[0].classpath] were left unbound.

由于某些原因,现在不支持支付宝支付,如需要购买源码请加博主微信进行购买,微信号:13248254750

一:项目集成mybatils-plus 异常信息如下:

Binding to target [Bindable@1bde767a type = java.lang.String[], value = 'provided', annotations = array<Annotation>[[empty]]] failed:

Property: mybatis-plus.mapper-locations[0].classpath
Value: mapper/**/*.xml
Origin: class path resource [application-dev.yml] - 32:18
Reason: The elements [mybatis-plus.mapper-locations[0].classpath] were left unbound.

Action:

Update your application's configuration


二:原因:- classpath: mapper/**/*.xml,中间有空格导致的。

错误写法:


正确写法:


正确的yml如下:

mybatis-plus:
type-aliases-package: com.mszl.api.entity # 所有Entity别名类所在包
mapper-locations:
- classpath:mapper/**/*.xml # mapper映射文件




2021-06-20 22:24:52     阅读(2382)

名师出品,必属精品    https://www.91mszl.com

联系博主    
用户登录遮罩层
x

账号登录

91名师指路-底部