Mybatis中的xml注释不能包含#{}, 如下图: 不然运行的时候被注释的语句依然存在 参考自:https://blog.csdn.net/peaceForEveryOne/article/details/82803357