mysql(5.7版本)可以进行保存,不需要在代码层面上解决
1、数据库改为ut8mb4
https://blog.csdn.net/poice00/article/details/52129351
2、mysql表字段设置为ut8mb4
3、mysql数据库连接字符串去掉编码方式
4、重启数据库,不然不生效
亲测通过,不通过的随时联系我
参考资料:
https://blog.csdn.net/qing_gee/article/details/55658065
mysql(5.7版本)可以进行保存,不需要在代码层面上解决
1、数据库改为ut8mb4
https://blog.csdn.net/poice00/article/details/52129351
2、mysql表字段设置为ut8mb4
3、mysql数据库连接字符串去掉编码方式
4、重启数据库,不然不生效
亲测通过,不通过的随时联系我
参考资料:
https://blog.csdn.net/qing_gee/article/details/55658065