Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Storageblob sample #167

Conversation

backwind1233
Copy link
Contributor

@backwind1233 backwind1233 commented Jan 21, 2022

Add usage for ResourceLoader and AzureStorageBlobProtocolResolver

@backwind1233 backwind1233 added the azure-spring All azure-spring related issues label Jan 21, 2022
@backwind1233 backwind1233 self-assigned this Jan 21, 2022

/**
* @author Warren Zhu
*/
@SpringBootApplication
public class StorageApplication {
public class StorageApplication implements CommandLineRunner {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why CommandLineRunner and web application at the same time?

Copy link
Contributor Author

@backwind1233 backwind1233 Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to use this CommandLineRunner to initialize the application, create some data in the blob containers so that users don't need to create some data in order to test AzureStorageBlobProtocolResolver.

Resource[] resources = azureStorageBlobProtocolResolver.getResources("azure-blob://" + containerName + "/*.txt");

Copy link
Contributor

@saragluna saragluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please make sure this is ported to beta.4 as well.

@backwind1233 backwind1233 merged commit a430705 into Azure-Samples:spring-cloud-azure_4.0.0-beta.3 Jan 26, 2022
@backwind1233 backwind1233 deleted the update_storage_blob_samples branch January 26, 2022 05:30
backwind1233 added a commit to backwind1233/azure-spring-boot-samples that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants