mybatis报错 Error creating bean with name 'bgmMapper' defined in file...
来源:5-5 使用Springboot版mybatis逆向生成工具

ltvieri
2022-02-18
把 mybatis.mapper-locations=classpath:mapper/.xml 改成
mybatis.mapper-locations=classpath:com.imooc.mapper/.xml
或者直接注释掉这行配置,就能跑通了,能正常操作数据库。
我想问一哈,为啥我这写 classpath:mapper/*.xml 就不行呢。是不我别的地方漏了什么配置,或者版本问题。
写回答
1回答
-
风间影月
2022-02-18
可能系统路径找不到吧,没关系的,你现在这个也行
00
相似问题