//package com.alibaba.csp.sentinel.dashboard.rule.nacos;
//
//import com.alibaba.nacos.api.PropertyKeyConst;
//import com.alibaba.nacos.api.config.ConfigFactory;
//import com.alibaba.nacos.api.config.ConfigService;
//import com.alibaba.nacos.api.exception.NacosException;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.Properties;
//
///**
// * @author lfdc
// * @version 1.0
// * @className NacosConfiguration
// * @description 配置常量类
// * @company sckw
// * @date 2023-06-07 13:06:45
// */
//@EnableConfigurationProperties(NacosConfigProperties.class)
//@Configuration
//public class NacosConfiguration {
//    @Bean
//    public ConfigService nacosConfigService(NacosConfigProperties nacosConfigProperties) throws NacosException {
//        Properties properties = new Properties();
//        properties.put(PropertyKeyConst.SERVER_ADDR, nacosConfigProperties.getServerAddr());
//        properties.put(PropertyKeyConst.NAMESPACE, nacosConfigProperties.getNamespace());
//        return ConfigFactory.createConfigService(properties);
//    }
//}
