开发者社区 问答 正文

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

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

展开
收起
游客ahv54x37wvm7u 2021-10-26 17:52:11 677 分享 版权
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-26 17:52:34
    赞同 展开评论