From 4c23846cd9c3503c5c0a775bdfd81404db0c11f4 Mon Sep 17 00:00:00 2001 From: liqipeng Date: Mon, 6 Jun 2022 11:28:32 +0800 Subject: [PATCH] fix #8169: Upgrade spring-boot version to 2.6.6 (#8184) --- .../nacos/core/code/SpringApplicationRunListener.java | 6 ++++-- pom.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/alibaba/nacos/core/code/SpringApplicationRunListener.java b/core/src/main/java/com/alibaba/nacos/core/code/SpringApplicationRunListener.java index 43b1477b2..3261135e6 100644 --- a/core/src/main/java/com/alibaba/nacos/core/code/SpringApplicationRunListener.java +++ b/core/src/main/java/com/alibaba/nacos/core/code/SpringApplicationRunListener.java @@ -19,6 +19,7 @@ package com.alibaba.nacos.core.code; import com.alibaba.nacos.core.listener.LoggingApplicationListener; import com.alibaba.nacos.core.listener.NacosApplicationListener; import com.alibaba.nacos.core.listener.StartingApplicationListener; +import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.context.event.EventPublishingRunListener; import org.springframework.context.ConfigurableApplicationContext; @@ -53,14 +54,15 @@ public class SpringApplicationRunListener implements org.springframework.boot.Sp } @Override - public void starting() { + public void starting(ConfigurableBootstrapContext bootstrapContext) { for (NacosApplicationListener nacosApplicationListener : nacosApplicationListeners) { nacosApplicationListener.starting(); } } @Override - public void environmentPrepared(ConfigurableEnvironment environment) { + public void environmentPrepared(ConfigurableBootstrapContext bootstrapContext, + ConfigurableEnvironment environment) { for (NacosApplicationListener nacosApplicationListener : nacosApplicationListeners) { nacosApplicationListener.environmentPrepared(environment); } diff --git a/pom.xml b/pom.xml index 811d42d3a..8f50e2f82 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ 1.3.0 - 2.1.17.RELEASE + 2.6.6 3.0 2.7 3.2.2