|
@@ -0,0 +1,72 @@
|
|
|
+package com.gyee.runeconomy.config;
|
|
|
+
|
|
|
+
|
|
|
+import lombok.Data;
|
|
|
+import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
+import org.springframework.boot.system.ApplicationHome;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.io.File;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Data
|
|
|
+@Component
|
|
|
+@ConfigurationProperties(prefix = "gyee")
|
|
|
+public class GyeeConfig {
|
|
|
+
|
|
|
+ public File jarF = null;
|
|
|
+ {
|
|
|
+ ApplicationHome h = new ApplicationHome(getClass());
|
|
|
+ jarF = h.getSource();
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 数据适配器网址 **/
|
|
|
+ private String adapterUrl;
|
|
|
+ /** 数据准备保存路径(原始数据) **/
|
|
|
+ private String filePathPrepare;
|
|
|
+ /** 数据处理保存路径(处理后的数据) **/
|
|
|
+ private String filePathProcess;
|
|
|
+ /** 数据拟合保存路径(拟合后的数据) **/
|
|
|
+ private String filePathFitting;
|
|
|
+ /** 数据压缩下载 **/
|
|
|
+ private String filePathDownload;
|
|
|
+ /** 功率曲线拟合测点 **/
|
|
|
+ private String points;
|
|
|
+
|
|
|
+ public List<String> getPoints() {
|
|
|
+ return Arrays.asList(this.points.split(","));
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFilePathPrepare() {
|
|
|
+ return jarF.getParentFile().getAbsolutePath() + "\\" + filePathPrepare;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFilePathPrepare(String filePathPrepare) {
|
|
|
+ this.filePathPrepare = filePathPrepare;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFilePathProcess() {
|
|
|
+ return jarF.getParentFile().getAbsolutePath() + "\\" + filePathProcess;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFilePathProcess(String filePathProcess) {
|
|
|
+ this.filePathProcess = filePathProcess;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFilePathFitting() {
|
|
|
+ return jarF.getParentFile().getAbsolutePath() + "\\" + filePathFitting;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFilePathFitting(String filePathFitting) {
|
|
|
+ this.filePathFitting = filePathFitting;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFilePathDownload() {
|
|
|
+ return jarF.getParentFile().getAbsolutePath() + "\\" + filePathDownload;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFilePathDownload(String filePathDownload) {
|
|
|
+ this.filePathDownload = filePathDownload;
|
|
|
+ }
|
|
|
+}
|