All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.flood.cloud.seata.config.SeataFeginAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 2.7.14.0
Show newest version
package cn.flood.cloud.seata.config;

import cn.flood.cloud.grpc.config.FloodCloudAutoConfiguration;
import cn.flood.cloud.seata.rest.SeataRestTemplateInterceptor;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.context.annotation.Bean;

/**
 * @author mmdai
 * @version 1.0
 * @date 2022/4/20 13:04
 */
@AutoConfigureBefore({FloodCloudAutoConfiguration.class})
public class SeataFeginAutoConfiguration {

//    @Primary
//    @Bean
//    public DataSourceProxy dataSource(DruidDataSource druidDataSource) {
//        return new DataSourceProxy(druidDataSource);
//    }


  @Bean
  public SeataRestTemplateInterceptor seataRestTemplateInterceptor() {
    return new SeataRestTemplateInterceptor();
  }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy