//上图是表信息
//控制台错误信息
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
### The error may exist in com/dun/mapper/AccountMapper.java (best guess)
### The error may involve com.dun.mapper.AccountMapper.save-Inline
### The error occurred while setting parameters
### SQL: insert into accounts values(?,?,?)
### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
; Column 'id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
//代码信息
public interface AccountMapper {
@Insert("insert into accounts values(#{id},#{name},#{money})")
public void save(Account account);
@Select("select * from accounts")
public List<Account> findAll();
}