From a1f231ae100d7996b244d8786ec39bdc63a95625 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Fri, 26 Jun 2026 12:58:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(push):=20=E6=94=B9=20ddl-auto=20=E4=B8=BA?= =?UTF-8?q?=20none=EF=BC=8C=E8=A7=A3=E5=86=B3=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E4=B8=8E=20Hibernate=20=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=9A=84=E5=90=AF=E5=8A=A8=E9=A1=BA=E5=BA=8F=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hibernate validate 在 ApplicationReadyEvent 之前执行, PushSchemaMigrationService 在 ApplicationReadyEvent 触发,导致每次 新增实体字段时服务启动失败(502)。 改为 none 后由 PushSchemaMigrationService 负责所有 DDL 变更。 Co-Authored-By: Claude Sonnet 4.6 --- push-service/src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push-service/src/main/resources/application.yml b/push-service/src/main/resources/application.yml index e8b763e..c7791b3 100644 --- a/push-service/src/main/resources/application.yml +++ b/push-service/src/main/resources/application.yml @@ -17,7 +17,7 @@ spring: max-lifetime: 900000 jpa: hibernate: - ddl-auto: validate + ddl-auto: none show-sql: false flyway: enabled: true