错误一:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'vaules('nons','student','13566321100')' at line 1
个人总结:此错误出现的原因在于添加类的名字命名与MySQL的自带语法冲突,改完类名后错误解决
错误二:
Mapped Statements collection does not contain value for com.xxxx.po.Customer.addCustomer
经过检查,
(1)在mybatis配置文件中,mapper映射文件配置没有错误。
(2)XML文件中的namespace也没有错误。
(3)xml文件和接口文件在同一个目录下。
*****重点来了****
!! 经再三仔细查询,发现字母命名格式错误!!!
以后可得好好写!!



