控制台打印错误信息
org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column 'title' from result set. Cause: java.sql.SQLException: Cannot convert value 'æ“作日志详æƒ
查询' from column 9 to TIMESTAMP. ; Cannot convert value 'æ“作
使用mybatisPlus,进行查询数据库字段类型也与实体类型一直,但是就是报错
public SysLog(String operationUser, String path, String time,
String parameter, String title, String action, Integer sysType, Integer opType,LocalDateTime createTime) {
super();
this.operationUser = operationUser;
this.path = path;
this.time = time;
this.parameter = parameter;
this.title = title;
this.action = action;
this.sysType = sysType;
this.opType = opType;
this.createTime = createTime;
}
最终发现原因,需要添加一个无参的构造方法就可以了