|
@@ -3,6 +3,7 @@ package org.ssssssss.magicapi.spring.boot.starter;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
|
|
+import org.ssssssss.magicapi.config.RequestHandler;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Collections;
|
|
@@ -72,6 +73,11 @@ public class MagicAPIProperties {
|
|
|
*/
|
|
|
private int threadPoolExecutorSize = 0;
|
|
|
|
|
|
+ /**
|
|
|
+ * 版本号
|
|
|
+ */
|
|
|
+ private final String version = RequestHandler.class.getPackage().getImplementationVersion();
|
|
|
+
|
|
|
|
|
|
@NestedConfigurationProperty
|
|
|
private SecurityConfig securityConfig = new SecurityConfig();
|
|
@@ -238,4 +244,8 @@ public class MagicAPIProperties {
|
|
|
public void setThreadPoolExecutorSize(int threadPoolExecutorSize) {
|
|
|
this.threadPoolExecutorSize = threadPoolExecutorSize;
|
|
|
}
|
|
|
+
|
|
|
+ public String getVersion() {
|
|
|
+ return version;
|
|
|
+ }
|
|
|
}
|