SnowFlakeProperties.java
602 Bytes
package cn.com.glsx.smart.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
/**
* @author fengzhi
* @version 1.0.0
* @ClassName KafkaProductorConfig.java
* @description: kafka生产消息
* @createTime 2021年03月12日 16:21:00
*/
@Data
@Configuration
@ConfigurationProperties("snow.flake")
@RefreshScope
public class SnowFlakeProperties {
private String workerId;
private String datacenterId;
}