content: package org.springframework.cloud.stream.binder.rocket.config;
  
  import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
  import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
  import org.springframework.boot.context.properties.EnableConfigurationProperties;
  import org.springframework.cloud.stream.binder.Binder;
  import org.springframework.cloud.stream.binder.rocket.RocketMessageChannelBinder;
  import org.springframework.cloud.stream.binder.rocket.properties.RocketMQBinderConfigurationProperties;
  import org.springframework.cloud.stream.binder.rocket.properties.RocketMQExtendedBindingProperties;
  import org.springframework.cloud.stream.binder.rocket.provisioning.RocketExchangeQueueProvisioner;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.context.annotation.Import;
  
  @Configuration
  @Import({PropertyPlaceholderAutoConfiguration.class})
  @EnableConfigurationProperties({RocketMQBinderConfigurationProperties.class, RocketMQExtendedBindingProperties.class})
  public class RocketMessageChannelBinderConfiguration {
  
      @Autowired
      private RocketMQBinderConfigurationProperties configurationProperties;
  
      @Autowired
      private RocketMQExtendedBindingProperties extendedBindingProperties;
  
      @Bean
      RocketExchangeQueueProvisioner provisioningProvider() {
          return new RocketExchangeQueueProvisioner(this.configurationProperties);
      }
  
      @Bean
      RocketMessageChannelBinder rocketMessageChannelBinder() {
          RocketMessageChannelBinder messageChannelBinder = new RocketMessageChannelBinder(
                  this.configurationProperties, this.extendedBindingProperties, provisioningProvider());
          return messageChannelBinder;
      }
  
  }
  