相关疑难解决方法(0)

插入表情符号不适用于spring-boot和MariaDB

我想像在mariaDB数据库中插入表情符号,但是我总是遇到sql错误。

这是堆栈跟踪:

12-01-2018 16:01:44.466 [Executor - Migration - 1] WARN  o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions:129 - SQL Error: 1366, SQLState: 22007
12-01-2018 16:01:44.466 [Executor - Migration - 1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions:131 - (conn:498) Incorrect string value: '\xF0\x9F\x92\xB3\xF0\x9F...' for column 'notes' at row 1
Query is: insert into customer (backend_archiving_date, backend_creation_date, backend_update_date, genius_client_id, address, birthday, city, company_name, country, email, fidelity_account_id, first_name, last_name, notes, phone, siret, zip_code, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), …
Run Code Online (Sandbox Code Playgroud)

utf-8 mariadb utf8mb4 spring-boot

2
推荐指数
2
解决办法
2762
查看次数

标签 统计

mariadb ×1

spring-boot ×1

utf-8 ×1

utf8mb4 ×1