Import gradle project idea started error Solution

Disclaimer: This article is knowledge crystalline bloggers, bloggers without permit can not be reproduced for commercial https://blog.csdn.net/zbr0819/article/details/88844215

Import gradle project idea started error Solution

When start compiling error

Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xxx.mapper.xxxMapper.xxx方法

wrong reason

After compiling classes folders and resources folders
classes folder only xxxMapper.class idea compile time and resources folder contains no xxxMapper.xml corresponding to the file;
After compiling the resources folder file does not correspond xxxMapper.xml

Modify the file build.gradle

Add to:

sourceSets.main.resources.srcDirs=["src/main/java","src/main/resources"]

After the update start:
will be placed xxxMapper.xml corresponding file in the resources folder

Guess you like

Origin blog.csdn.net/zbr0819/article/details/88844215