Home > Back-end >  Publish a web project, mapper. XML can be lost
Publish a web project, mapper. XML can be lost

Time:11-25

If release project after tests found the following error: org. Apache. Ibatis. Binding. BindingException: Invalid bound statement (not found) : com. Feng. SSM. Mapper. UserMapper. SelectByExample

Check the file name and save the method name and so on all have no problem, check the package folder of the target folder is there a mapper. The XML file, if not, explain packaging failure, need to be modified pom. The XML file, add the following code can be repackaged:

 & lt; Resources> 

The ${basedir}/SRC/main/java

/* * *. Xml


  • Related