在本地測試正常,調整到RDS或者騰訊雲數據庫產品后,出現以下問題:
2021-11-27 01:02:12,239000[catalina-exec-2]ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions:142 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'ddd.this_.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with
點擊修改參數值,將里面的 ONLY_FULL_GROUP_BY √去掉就行了。
保存修改,這個修改不需要重啟服務器即可生效。