增加配置选项

This commit is contained in:
Lawrence 2021-01-27 15:27:35 +08:00
parent ba769a0082
commit 6ae77e2829

View File

@ -0,0 +1,18 @@
package com.genersoft.iot.vmp.conf;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration("userSetup")
public class UserSetup {
@Value("${userSettings.savePositionHistory}")
boolean savePositionHistory;
public boolean getSavePositionHistory() {
return savePositionHistory;
}
public void setSavePositionHistory(boolean savePositionHistory) {
this.savePositionHistory = savePositionHistory;
}
}