Browse Source

增加配置选项

pull/47/head
Lawrence 4 years ago
parent
commit
b915e7bc37
  1. 18
      src/main/java/com/genersoft/iot/vmp/conf/UserSetup.java

18
src/main/java/com/genersoft/iot/vmp/conf/UserSetup.java

@ -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;
}
}
Loading…
Cancel
Save