From 7c6f3bea4adc85b726c23a3998b513f3958c51c0 Mon Sep 17 00:00:00 2001 From: heavyrian2012 Date: Fri, 13 Oct 2023 09:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=90=E4=BA=9B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.properties | 2 +- src/main/java/cn/wildfirechat/app/jpa/Announcement.java | 1 + src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/application.properties b/config/application.properties index 0311b28..37d655b 100644 --- a/config/application.properties +++ b/config/application.properties @@ -19,7 +19,7 @@ spring.jpa.hibernate.ddl-auto=update # mysql默认配置 # mysql需要手动创建数据库,mysql命令行下执行 create database appdata; appdata可以换为别的库名,但注意不能使用IM服务器使用的数据库"wfchat",否则会引起冲突。 ##*********************** mysql DB begin ************************* -#spring.datasource.url=jdbc:mysql://localhost:3306/appdata?serverTimezone=UTC&useSSL=false +#spring.datasource.url=jdbc:mysql://localhost:3306/appdata?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false #spring.datasource.username=root #spring.datasource.password=123456 #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver diff --git a/src/main/java/cn/wildfirechat/app/jpa/Announcement.java b/src/main/java/cn/wildfirechat/app/jpa/Announcement.java index 4a56883..25263be 100755 --- a/src/main/java/cn/wildfirechat/app/jpa/Announcement.java +++ b/src/main/java/cn/wildfirechat/app/jpa/Announcement.java @@ -11,6 +11,7 @@ public class Announcement { private String author; + @Column(length = 2048) private String announcement; private long timestamp; diff --git a/src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java b/src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java index 6450073..6061a01 100755 --- a/src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java +++ b/src/main/java/cn/wildfirechat/app/jpa/FavoriteItem.java @@ -15,7 +15,7 @@ public class FavoriteItem { @Nullable public Long messageUid; - @Column(name = "user_id") + @Column(name = "user_id", length = 64) public String userId; @Column(name = "type")