处理配置导致的问题

This commit is contained in:
wanggeng 2021-10-19 10:12:10 +08:00
parent 8b9888f4b5
commit 9f4316b8d1

View File

@ -54,6 +54,9 @@ public class MinIoFileServiceImpl extends DefaultBaseService implements IMinIoFi
@PostConstruct
public void init() throws InvalidPortException, InvalidEndpointException {
if (!fileProperties.getUseMinIo()) {
return;
}
minIoProperties = fileProperties.getMinIo();
minioClient = new MinioClient(minIoProperties.getEndpoint(), minIoProperties.getAccessKey(), minIoProperties.getSecretKey(), minIoProperties.getSecure());
}