mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
just update to match code style
This commit is contained in:
parent
b72d468be1
commit
49d0ebdabe
@ -123,7 +123,7 @@ class SampleRunner implements ApplicationRunner {
|
||||
*
|
||||
* user.name=Nacos user.age=25
|
||||
* @param configInfo latest config data for specific dataId in Nacos
|
||||
* server
|
||||
* server
|
||||
*/
|
||||
@Override
|
||||
public void receiveConfigInfo(String configInfo) {
|
||||
|
@ -65,8 +65,9 @@ public final class NacosPropertySourceRepository {
|
||||
|
||||
public static void collectNacosPropertySource(
|
||||
NacosPropertySource nacosPropertySource) {
|
||||
NACOS_PROPERTY_SOURCE_REPOSITORY.putIfAbsent(getMapKey(nacosPropertySource.getDataId(),
|
||||
nacosPropertySource.getGroup()), nacosPropertySource);
|
||||
NACOS_PROPERTY_SOURCE_REPOSITORY
|
||||
.putIfAbsent(getMapKey(nacosPropertySource.getDataId(),
|
||||
nacosPropertySource.getGroup()), nacosPropertySource);
|
||||
}
|
||||
|
||||
public static NacosPropertySource getNacosPropertySource(String dataId,
|
||||
|
@ -23,8 +23,8 @@ import org.springframework.boot.actuate.health.Health;
|
||||
import org.springframework.boot.actuate.health.HealthIndicator;
|
||||
|
||||
/**
|
||||
* The {@link HealthIndicator} for Nacos Config
|
||||
*
|
||||
* The {@link HealthIndicator} for Nacos Config.
|
||||
*
|
||||
* @author xiaojing
|
||||
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
|
||||
*/
|
||||
|
@ -54,7 +54,8 @@ public class NacosDiscoveryClientConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@ConditionalOnProperty(value = "spring.cloud.nacos.discovery.watch.enabled", matchIfMissing = true)
|
||||
@ConditionalOnProperty(value = "spring.cloud.nacos.discovery.watch.enabled",
|
||||
matchIfMissing = true)
|
||||
public NacosWatch nacosWatch(NacosDiscoveryProperties nacosDiscoveryProperties,
|
||||
ObjectProvider<TaskScheduler> taskScheduler) {
|
||||
return new NacosWatch(nacosDiscoveryProperties, taskScheduler);
|
||||
|
@ -61,7 +61,7 @@ public class NacosWatch implements ApplicationEventPublisherAware, SmartLifecycl
|
||||
}
|
||||
|
||||
/**
|
||||
* The constructor with {@link NacosDiscoveryProperties} bean and the optional
|
||||
* The constructor with {@link NacosDiscoveryProperties} bean and the optional.
|
||||
* {@link TaskScheduler} bean
|
||||
* @param properties {@link NacosDiscoveryProperties} bean
|
||||
* @param taskScheduler the optional {@link TaskScheduler} bean
|
||||
|
@ -1,12 +1,11 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@ -14,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.nacos.discovery.actuate.health;
|
||||
|
||||
import com.alibaba.nacos.api.naming.NamingService;
|
||||
@ -23,8 +23,8 @@ import org.springframework.boot.actuate.health.Health;
|
||||
import org.springframework.boot.actuate.health.HealthIndicator;
|
||||
|
||||
/**
|
||||
* The {@link HealthIndicator} for Nacos Discovery
|
||||
*
|
||||
* The {@link HealthIndicator} for Nacos Discovery.
|
||||
*
|
||||
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
|
||||
* @since 2.2.0
|
||||
* @see HealthIndicator
|
||||
@ -55,4 +55,5 @@ public class NacosDiscoveryHealthIndicator extends AbstractHealthIndicator {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,8 +30,8 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* The AutoConfiguration class for Nacos Discovery's Endpoints
|
||||
*
|
||||
* The AutoConfiguration class for Nacos Discovery's Endpoints.
|
||||
*
|
||||
* @author xiaojing
|
||||
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
|
||||
*/
|
||||
@ -55,4 +55,5 @@ public class NacosDiscoveryEndpointAutoConfiguration {
|
||||
return new NacosDiscoveryHealthIndicator(
|
||||
nacosDiscoveryProperties.namingServiceInstance());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user