class NacosAutoConfiguration {
    @Autowired
    private Environment environment;

    @Bean
    @ConditionalOnMissingBean
    public ConfigService nacosConfigService() throws NacosException {
        Properties properties = createNacosProperties(environment, true);

        return NacosFactory.createConfigService(properties);
    }

    @Bean
    public NacosOperation nacosOperation() {
        return new NacosOperation();
    }

    public static Properties createNacosProperties(Environment environment, boolean enableRemoteSyncConfig) {<FILL_FUNCTION_BODY>}
}

        Properties properties = new Properties();

        // 支持从spring.cloud.nacos.config前缀方式获取
        PropertiesUtil.enrichProperties(properties, environment, NacosConstant.SPRING_CLOUD_NACOS_CONFIG_PREFIX, true, true);

        // 支持从nacos前缀方式获取
        PropertiesUtil.enrichProperties(properties, environment, NacosConstant.NACOS_PREFIX, true, true);

        properties.put(NacosConstant.ENABLE_REMOTE_SYNC_CONFIG, Boolean.toString(enableRemoteSyncConfig));

        return properties;
    
<no_super_class>