现象是这样的,前端访问应用审核功能,系统出现数据库错误,前端的message将错误信息也展示出来了。

原因是这样:

  1. 错误信息的产生是因为数据库配置与SQL语句不兼容

Caused by: java.sql.SQLSyntaxErrorException: Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘r.dicName’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Caused by: java.sql.SQLSyntaxErrorException: Expression #16 of SELECT list is not in GROUP BY clause

解决方式:需要修改数据库sql_mode的only_full_group_by配置。

  1. 错误信息的展示是因为appstore-portal使用的exception库不是最新版本,导致将异常描述信息作为API的响应描述信息返回了,现在已经将appstore-portal使用的exception库升级到了最新的1.1.1版本。

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-09-20
  • 2021-04-25
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案