您的位置:首页 > 其它

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gradle mybatis