Skip to content

Commit

Permalink
Feature change version (#234)
Browse files Browse the repository at this point in the history
* change springboot version

* change springboot version

Co-authored-by: hujun3 <hujun3@xiaomi.com>
  • Loading branch information
hujun-w-2 and hujun-w-2 authored Mar 21, 2022
1 parent a8d6a80 commit e54e0cd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,7 +34,7 @@ public class NacosConfigEndpointAutoConfiguration {

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@ConditionalOnAvailableEndpoint
public NacosConfigEndpoint nacosEndpoint() {
return new NacosConfigEndpoint();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,7 +34,7 @@ public class NacosDiscoveryEndpointsAutoConfiguration {

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@ConditionalOnAvailableEndpoint
public NacosDiscoveryEndpoint nacosDiscoveryEndpoint() {
return new NacosDiscoveryEndpoint();
}
Expand Down
12 changes: 11 additions & 1 deletion nacos-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<java.target.version>1.8</java.target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.0.3.RELEASE</spring-boot.version>
<spring-boot.version>2.6.3</spring-boot.version>
<nacos-spring-context.version>1.1.1</nacos-spring-context.version>
<!-- Build args -->
<argline>-server -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8
Expand Down Expand Up @@ -169,6 +169,16 @@
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<!-- Used for packaging NOTICE & LICENSE to each sub-module jar-->
<resources>
Expand Down

0 comments on commit e54e0cd

Please sign in to comment.