|
|
|
@ -21,6 +21,7 @@ import org.springframework.boot.actuate.autoconfigure.endpoint.condition.Conditi
|
|
|
|
|
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
|
|
|
|
|
import org.springframework.cloud.alibaba.nacos.NacosConfigProperties;
|
|
|
|
|
import org.springframework.cloud.alibaba.nacos.refresh.NacosRefreshHistory;
|
|
|
|
@ -31,6 +32,7 @@ import org.springframework.context.annotation.Bean;
|
|
|
|
|
*/
|
|
|
|
|
@ConditionalOnWebApplication
|
|
|
|
|
@ConditionalOnClass(value = Endpoint.class)
|
|
|
|
|
@ConditionalOnProperty(name = "spring.cloud.nacos.config.enabled", matchIfMissing = true)
|
|
|
|
|
public class NacosConfigEndpointAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|