parent
323fd52d5a
commit
d5bda84d2c
@ -0,0 +1,21 @@
|
|||||||
|
package com.dsideal.resource.Test;
|
||||||
|
|
||||||
|
import com.dsideal.resource.Plugin.YamlProp;
|
||||||
|
import com.jfinal.kit.Prop;
|
||||||
|
|
||||||
|
import static com.dsideal.resource.ResApplication.getEnvPrefix;
|
||||||
|
|
||||||
|
public class TestUploadToMinio {
|
||||||
|
public static Prop PropKit;
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
//加载配置文件
|
||||||
|
String configFile = "application_{?}.yaml".replace("{?}", getEnvPrefix());
|
||||||
|
PropKit = new YamlProp(configFile);
|
||||||
|
String endPoint = PropKit.get("minio.endpoint");
|
||||||
|
String accessKey = PropKit.get("minio.accessKey");
|
||||||
|
String secretKey = PropKit.get("minio.secretKey");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue