问题场景
这是一个查询接口
@Override
public List<AiRoleVO> getAiRoleList() {
return new LambdaQueryChainWrapper<>(this.getBaseMapper())
.select(AiRole::getId,AiRole::getName, AiRole::getPrompt,AiRole::getUseCount,
AiRole::getIsShare,AiRole::getAvatar)
.eq(AiRole::getUserId, UserHolder.getInfoByToken().getId())
.list()
.stream()
.map(this::aiRoleToVO)
.toList();
}
接着报错信息如下:具体内容是有个字段不知道类型,解析异常。
com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string 'https://chat.7jm.cn/'
at com.mysql.cj.result.BooleanValueFactory.createFromBytes(BooleanValueFactory.java:116) ~[mysql-connector-j-8.2.0.jar:8.2.0]
at com.mysql.cj.result.BooleanValueFactory.createFromBytes(BooleanValueFactory.java:47) ~[mysql-connector-j-8.2.0.ja