Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?
interface devuelve un resource al leer blob storage de azure:
default Resource readFileFromBlob(String filename, String containerName){
return readFileFromBlob(filename, containerName);
}
Implement:
@Override
public Resource readFileFromBlob(String filename, String containerName) {
log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
BlobServiceClient storageClient = new BlobServiceClientBuilder()
.connectionString(properties.getConfiguration().getStorageConnectionStr())
.buildClient();
BlobContainerClient blobContainerClient =
storageClient.getBlobContainerClient(containerName);
BlobClient blobClient = blobContainerClient.getBlobClient(filename);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
blobClient.download(outputStream);
final byte[] bytes = outputStream.toByteArray();
return new ByteArrayResource(bytes);
}