main
黄海 9 months ago
parent 323fd52d5a
commit d5bda84d2c

@ -3,4 +3,42 @@ package com.dsideal.resource.Res.Controller;
import com.jfinal.core.Controller; import com.jfinal.core.Controller;
public class ResourceController extends Controller { public class ResourceController extends Controller {
/**
*
*/
public void addResource(){
}
/**
*
* @param resource_id_int id
*/
public void deleteResource(int resource_id_int){
}
/**
*
* @param resource_id_int id
*/
public void updateResource(int resource_id_int){
}
/**
*
* @param resource_id_int id
*/
public void queryResource(int resource_id_int){
}
/**
*
*/
public void queryAllResource(){
}
} }

@ -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");
}
}

@ -18,6 +18,10 @@ redis:
port: 18890 port: 18890
password: password:
minio:
endpoint: http://10.10.14.210:9000
accessKey: AOxWewe7pywwEc1NQeP6
secretKey: EiLaKLpLW6OHmjPxvMLBD11Zu3xtV1tdZU9PFVYO
# ============================================================== # ==============================================================
excel: excel:

@ -18,6 +18,10 @@ redis:
port: 18890 port: 18890
password: password:
minio:
endpoint: http://10.10.14.210:9000
accessKey: AOxWewe7pywwEc1NQeP6
secretKey: EiLaKLpLW6OHmjPxvMLBD11Zu3xtV1tdZU9PFVYO
# ============================================================== # ==============================================================
excel: excel:

@ -1,7 +1,10 @@
#### 摘取镜像 #### 摘取镜像
```shell ```shell
docker pull minio/minio yum install docker -y
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
``` ```
@ -11,13 +14,12 @@ docker pull minio/minio
```shell ```shell
mkdir -p /opt/minio/{data,.minio} mkdir -p /opt/minio/{data,.minio}
docker run --name minio -d -p 9000:9000 -p 9090:9090 -v /opt/minio/data:/data -v /opt/minio/.minio:/root/.minio minio/minio server /data --console-address ":9090" --address ":9000" docker run --name minio -d -p 9000:9000 -p 9090:9090 -v /opt/minio/data:/data -v /opt/minio/.minio:/root/.minio quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z server /data --console-address ":9090" --address ":9000"
``` ```
#### 访问办法 #### 访问办法
通过浏览器访问`http://10.10.14.212:9090/login`即可访问MinIO的Web管理界面 通过浏览器访问`http://10.10.14.210:9090/login`即可访问MinIO的Web管理界面
默认凭证 默认凭证

Loading…
Cancel
Save