org.springframework.security.authentication.InternalAuthenticationServiceException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7 ### The error may exist in com/psi/admin/mapper/UserMapper.java (best guess) ### The error may involve com.psi.admin.mapper.UserMapper.selectOne ### The error occurred while handling results ### SQL: SELECT id,bz,password,true_name,user_name,remarks,is_del FROM t_user WHERe (is_del = ? AND user_name = ?) ### Cause: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
我是因为在实体类中使用了@Builder注解导致有了有参构造方法之后不会自动产生无参构造
解决:
在实体类中加入无参构造方法或需要参数的构造方法即可



