首页>代码>SpringBoot+Vue前后端分离学校教学管理系统>/yxt/后端代码/yxt/src/main/java/com/zl/yxt/config/Minioconfiguration.java
package com.zl.yxt.config; import io.minio.MinioClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class Minioconfiguration { private final Logger log = LoggerFactory.getLogger(Minioconfiguration.class.getName()); //minio的信息 @Value("${minio.host}") private String host; @Value("${minio.uname}") private String accessKey; @Value("${minio.pwd}") private String secretKey; @Bean public MinioClient minioClient() { try { return new MinioClient(host, accessKey, secretKey); } catch (Exception e) { log.error(e.toString()); } return null; } }
最近下载更多
微信网友_6927932988952576 LV12
3月31日
顾北城 LV12
3月28日
西瓜哥哥 LV4
2023年8月8日
ericxu1116 LV24
2023年5月28日
1806795436 LV4
2023年1月10日
331376387 LV5
2022年11月16日
qlpqlp LV7
2022年11月14日
郎建伟 LV1
2022年11月11日
wensente LV2
2022年11月2日
nyfcalf LV12
2022年10月14日