插入语句如下
INSERT INTO SYS_USERS ( ID, NAME, PHONE, EMAIL, SEX, AGE, PASSWD, ROLE_ID ) values ( ?, ?, ?, ?, ?, ?, ?, ? )
错误信息如下
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Error preparing statement. Cause: java.lang.ArrayIndexOutOfBoundsException: 8
前端传递信息如下。。。。没看懂问题是怎么出的?
另外service方法如下
@Override
public void add(SysUsers user) {
sysUsersMapper.add(user);
}
Mapper 代码如下
INSERT INTO SYS_USERS
ID,
NAME,
PHONE,
EMAIL,
SEX,
AGE,
PASSWD,
ROLE_ID,
#{id},
#{name},
#{phone},
#{email},
#{sex},
#{age},
#{passwd},
#{roleId},