开发者社区> 问答> 正文

SpringBoot和mybatis采用junit测试时找不到mapper.xml是为什么

SpringBoot和mybatis采用junit测试时找不到mapper.xml是为什么

展开
收起
游客ahv54x37wvm7u 2021-10-27 19:19:50 838 0
1 条回答
写回答
取消 提交回答
  • mybatis 的springboot 集成项目已经发布了 maven 12345 org.mybatis.spring.boot mybatis-spring-boot-starter 1.0.0 properties 配置 123456mybatis.config= # mybatis config filemybatis.mapperLocations= # mappers filemybatis.typeAliasesPackage= # domain object's package mybatis.typeHandlersPackage= # handler's packagemybatis.check-config-location= # check the mybatis configuration existsmybatis.executorType= # mode of execution. Default is SIMPLE

    2021-10-27 19:20:14
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第6讲】:Spring Boot 2.0实战MyBatis与优化(Java面试题) 立即下载
前端自动化测试 立即下载
F2etest — 多浏览器兼容性测试整体解决方案 立即下载