|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.IdUtil;
|
|
|
import cn.hutool.extra.spring.SpringUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
@@ -12,9 +13,10 @@ import org.springframework.stereotype.Component;
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
+@Configuration
|
|
|
public class SnowIdUtil {
|
|
|
|
|
|
- @Value("snowflake.wordId")
|
|
|
+ @Value("${snowflake.wordId}")
|
|
|
private String wordId;
|
|
|
|
|
|
|