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")