From 044e486ac58fc013eaa53d1eac656321df57f618 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 17 Oct 2024 11:28:18 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E8=B0=83=E6=95=B4BladeApplication?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/launch/BladeApplication.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java b/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java index 1eccc83..9c9936a 100644 --- a/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java +++ b/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java @@ -44,16 +44,16 @@ public class BladeApplication { * @param source The sources * @return an application context created from the current state */ - public static ConfigurableApplicationContext run(String appName, Class source, String... args) { + public static ConfigurableApplicationContext run(String appName, Class source, String... args) { SpringApplicationBuilder builder = createSpringApplicationBuilder(appName, source, args); return builder.run(args); } - public static SpringApplicationBuilder createSpringApplicationBuilder(String appName, Class source, String... args) { - return createSpringApplicationBuilder(null, appName, source, args); + public static SpringApplicationBuilder createSpringApplicationBuilder(String appName, Class source, String... args) { + return createSpringApplicationBuilder(appName, source, null, args); } - public static SpringApplicationBuilder createSpringApplicationBuilder(SpringApplicationBuilder builder, String appName, Class source, String... args) { + public static SpringApplicationBuilder createSpringApplicationBuilder(String appName, Class source, SpringApplicationBuilder builder, String... args) { Assert.hasText(appName, "[appName]服务名不能为空"); // 读取环境变量,使用spring boot的规则 ConfigurableEnvironment environment = new StandardEnvironment();