From e54e0cdd0dbd67ca66b3a34cd435cdadef5fd88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BF=8A?= <510830970@qq.com> Date: Mon, 21 Mar 2022 17:47:15 +0800 Subject: [PATCH] Feature change version (#234) * change springboot version * change springboot version Co-authored-by: hujun3 --- .../NacosConfigEndpointAutoConfiguration.java | 5 ++--- .../NacosDiscoveryEndpointsAutoConfiguration.java | 5 ++--- nacos-spring-boot-parent/pom.xml | 12 +++++++++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/nacos-config-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/actuate/autoconfigure/NacosConfigEndpointAutoConfiguration.java b/nacos-config-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/actuate/autoconfigure/NacosConfigEndpointAutoConfiguration.java index 028e4fa39..37ebfe1d3 100644 --- a/nacos-config-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/actuate/autoconfigure/NacosConfigEndpointAutoConfiguration.java +++ b/nacos-config-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/actuate/autoconfigure/NacosConfigEndpointAutoConfiguration.java @@ -17,8 +17,7 @@ package com.alibaba.boot.nacos.actuate.autoconfigure; import com.alibaba.boot.nacos.actuate.endpoint.NacosConfigEndpoint; - -import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint; +import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint; import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; @@ -35,7 +34,7 @@ public class NacosConfigEndpointAutoConfiguration { @Bean @ConditionalOnMissingBean - @ConditionalOnEnabledEndpoint + @ConditionalOnAvailableEndpoint public NacosConfigEndpoint nacosEndpoint() { return new NacosConfigEndpoint(); } diff --git a/nacos-discovery-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/discovery/actuate/autoconfigure/NacosDiscoveryEndpointsAutoConfiguration.java b/nacos-discovery-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/discovery/actuate/autoconfigure/NacosDiscoveryEndpointsAutoConfiguration.java index 8a0488ab2..491d61f97 100644 --- a/nacos-discovery-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/discovery/actuate/autoconfigure/NacosDiscoveryEndpointsAutoConfiguration.java +++ b/nacos-discovery-spring-boot-actuator/src/main/java/com/alibaba/boot/nacos/discovery/actuate/autoconfigure/NacosDiscoveryEndpointsAutoConfiguration.java @@ -17,8 +17,7 @@ package com.alibaba.boot.nacos.discovery.actuate.autoconfigure; import com.alibaba.boot.nacos.discovery.actuate.endpoint.NacosDiscoveryEndpoint; - -import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint; +import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint; import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; @@ -35,7 +34,7 @@ public class NacosDiscoveryEndpointsAutoConfiguration { @Bean @ConditionalOnMissingBean - @ConditionalOnEnabledEndpoint + @ConditionalOnAvailableEndpoint public NacosDiscoveryEndpoint nacosDiscoveryEndpoint() { return new NacosDiscoveryEndpoint(); } diff --git a/nacos-spring-boot-parent/pom.xml b/nacos-spring-boot-parent/pom.xml index d61003b7a..f14140259 100644 --- a/nacos-spring-boot-parent/pom.xml +++ b/nacos-spring-boot-parent/pom.xml @@ -35,7 +35,7 @@ 1.8 UTF-8 UTF-8 - 2.0.3.RELEASE + 2.6.3 1.1.1 -server -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8 @@ -169,6 +169,16 @@ + + + junit + junit + 4.12 + compile + true + + +