为了账号安全,请及时绑定邮箱和手机立即绑定

SpringBoot和mybatis采用junit测试时找不到mapper.xml

SpringBoot和mybatis采用junit测试时找不到mapper.xml

郎朗坤 2018-07-30 04:04:51
怎么办正常启动项目通过浏览器测试没有问题,通过junit测试报Invalid bound statement (not found),看日志是没扫描到mapper.xml配置文件,我猜想是springboot的application.properties也没读取到Property 'mapperLocations' was not specified or no matching resources found
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1939 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信