cn.z.id.autoconfigure.IdProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of id-spring-boot-autoconfigure Show documentation
Show all versions of id-spring-boot-autoconfigure Show documentation
High Performance Snowflake ID Generator Springboot Autoconfigure (Single Version) 高性能雪花ID生成器SpringBoot自动配置(单机版)
The newest version!
package cn.z.id.autoconfigure;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 高性能雪花ID生成器配置属性
*
*
* createDate 2021/02/25 14:40:55
*
*
* @author ALI[[email protected]]
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "id")
public class IdProperties {
/**
* 序列号位数(默认值20)
*/
private long sequenceBits = 20L;
public long getSequenceBits() {
return sequenceBits;
}
public void setSequenceBits(long sequenceBits) {
this.sequenceBits = sequenceBits;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy