处理配置导致的问题
This commit is contained in:
parent
8b9888f4b5
commit
9f4316b8d1
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user