错误写法:
<insert id="insert" parameterType="org.example.pojo.Student">
INSERT INTO STUDENT (NAMES,AGE,EMAIL)
VALUES (#{NAMES},#{AGE},#{EMAIL})
</insert>
正确写法:
<insert id="insert" parameterType="org.example.pojo.Student">
INSERT INTO STUDENT (NAMES,AGE,EMAIL)
VALUES (#{names},#{age},#{email})
</insert>
错误原因分析:
#{NAMES} 不能大写,必须与实体类中定义的完全一致
实体类中private String names;