Skip to content

Commit

Permalink
♻️ refactor(build, boot/platform): 更新构建配置和代码优化,提高项目可维护性和可读性
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Aug 1, 2024
1 parent 88f5300 commit 569d09c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -28,12 +29,12 @@ public class R2dbcConfiguration extends AbstractR2dbcConfiguration {
private final List<Converter<?, ?>> customConverters;

@Override
public @lombok.NonNull ConnectionFactory connectionFactory() {
public @NonNull ConnectionFactory connectionFactory() {
return ConnectionFactories.get("r2dbc:..");
}

@Override
public @lombok.NonNull List<Object> getCustomConverters() {
public @NonNull List<Object> getCustomConverters() {
return Lists.newArrayList(customConverters);
}

Expand Down

0 comments on commit 569d09c

Please sign in to comment.