增加配置选项
This commit is contained in:
parent
ba769a0082
commit
6ae77e2829
18
src/main/java/com/genersoft/iot/vmp/conf/UserSetup.java
Normal file
18
src/main/java/com/genersoft/iot/vmp/conf/UserSetup.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user