Error updating database. Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x81' for column
字段以及库/表都是utf8mb4

配置文件添加

spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
spring.datasource.dbcp2.connection-init-sqls=SET NAMES utf8mb4
    // https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2
    implementation("org.apache.commons:commons-dbcp2:2.9.0")