From 569d09cf82553964b9eab24e9a3a4065040622b8 Mon Sep 17 00:00:00 2001 From: AlexBob Date: Thu, 1 Aug 2024 09:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(build,=20boot/pla?= =?UTF-8?q?tform):=20=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E9=A1=B9=E7=9B=AE=E5=8F=AF=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 10 ++++------ .../java/com/plate/boot/config/R2dbcConfiguration.java | 5 +++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9b6a362d..4026b35d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -7,17 +7,15 @@ name: Gradle Build Docker Package run-name: ${{ github.actor }} is bootBuildImage Actions on: - release: - types: [ created ] - workflow_dispatch: + push: branches: - main pull_request: branches: - main - push: - branches: - - main + release: + types: [ created ] + permissions: contents: read packages: write diff --git a/boot/platform/src/main/java/com/plate/boot/config/R2dbcConfiguration.java b/boot/platform/src/main/java/com/plate/boot/config/R2dbcConfiguration.java index 966ad4d4..3c86d7d1 100644 --- a/boot/platform/src/main/java/com/plate/boot/config/R2dbcConfiguration.java +++ b/boot/platform/src/main/java/com/plate/boot/config/R2dbcConfiguration.java @@ -12,6 +12,7 @@ import org.springframework.data.domain.ReactiveAuditorAware; import org.springframework.data.r2dbc.config.AbstractR2dbcConfiguration; import org.springframework.data.r2dbc.config.EnableR2dbcAuditing; +import org.springframework.lang.NonNull; import org.springframework.transaction.annotation.EnableTransactionManagement; import java.util.List; @@ -28,12 +29,12 @@ public class R2dbcConfiguration extends AbstractR2dbcConfiguration { private final List> customConverters; @Override - public @lombok.NonNull ConnectionFactory connectionFactory() { + public @NonNull ConnectionFactory connectionFactory() { return ConnectionFactories.get("r2dbc:.."); } @Override - public @lombok.NonNull List getCustomConverters() { + public @NonNull List getCustomConverters() { return Lists.newArrayList(customConverters); }