MyBatis Invalid Bound Statement
2016-06-24 17:08
429 查看
1. Problem & Analysis
The project passes all tests in STS, but fails many tests when executing gradle build.
Find the Gradle's test report, many Invalid Bound Statement.
Then go to the bin folder, found no MyBatis mapper xml files inside, why Gradle didn't copy the xml files to complied target?
2. Solution
Don't want to do some complicated configuration on Gradle side, the easiest solution should be move the xml files from src/main/java to src/main/resources, of course keep the hierarchy.
The project passes all tests in STS, but fails many tests when executing gradle build.
Find the Gradle's test report, many Invalid Bound Statement.
Then go to the bin folder, found no MyBatis mapper xml files inside, why Gradle didn't copy the xml files to complied target?
2. Solution
Don't want to do some complicated configuration on Gradle side, the easiest solution should be move the xml files from src/main/java to src/main/resources, of course keep the hierarchy.
相关文章推荐
- SourceProvider.getJniDirectories
- 执行失败的任务 ': processDebugManifest'
- Android Studio使用教程(六):Gradle多渠道打包
- Mybatis传递多个参数的解决办法(三种)
- 获取Java的MyBatis框架项目中的SqlSession的方法
- Mybatis逆工程jar包的修改和打包
- 深入浅析mybatis oracle BLOB类型字段保存与读取
- MyBatis MapperProvider MessageFormat拼接批量SQL语句执行报错的原因分析及解决办法
- 详解Java的MyBatis框架和Spring框架的整合运用
- Java的MyBatis框架项目搭建与hellow world示例
- SpringMVC整合mybatis实例代码
- Java实现mybatis批量插入数据到Oracle
- oracle+mybatis 使用动态Sql当插入字段不确定的情况下实现批量insert
- MyBatis学习笔记(二)之关联关系
- 浅析Mybatis 在CS程序中的应用
- Java Mybatis框架入门基础教程
- Windows下Java+MyBatis框架+MySQL的开发环境搭建教程
- Mybatis与Ibatis的区别
- Android客户端程序Gradle如何打包
- Android中使用Gradle来构建App项目的入门指南