|
|
@@ -23,10 +23,13 @@ public class CoreAutoConfiguration implements WebMvcConfigurer { |
|
|
|
*/ |
|
|
|
@Value("${smtweb.machine-id}") |
|
|
|
private int machineId; |
|
|
|
@Value("${smtweb.enable-job}") |
|
|
|
private boolean enableJob; |
|
|
|
|
|
|
|
@Bean |
|
|
|
public IdGenerator idGenerator() { |
|
|
|
SwConsts.SysParam.machineId = machineId; |
|
|
|
SwConsts.SysParam.enableJob = enableJob; |
|
|
|
return new IdGenerator(machineId); |
|
|
|
} |
|
|
|
|
|
|
|