首先查看生成的traget文件是否有自己对应路径下的mapper.xml文件。大概率是没有这个mapper文件造成nvalid bound statement (no)这个问题。 解决办法:maven clean一下重新运行