Replies: 1 comment
-
How to implement the Spring Resource from scratchSpring’s Resource abstraction is a core module in Spring Framework, there are lots of built-in implementations to access low-level resources. Extending a new protocol Resource is to implement This article will introduce the Spring Resource, take Spring Cloud Azure's implementation of Spring Resource as an example to analyze the current limitations and how to improve them. IntroductionThe official Spring Resources documentation already provides a detailed description of those Spring Resources that Spring itself implements. The following are the main implementation steps:
When resolving a resource via a resource location, it is actually resolved with a resource loader The following are the commonly used Resource implementations built in Spring:
Of course, each resource will have a corresponding resource resolver, we can learn and refer very well. Spring Resource in Spring Cloud AzureSpring Cloud Azure provides two Spring resource and resource pattern resolver implementations, this time we only discuss the implementation of Azure Storage Blob resource. You can further view the source code Spring Resources in Spring Cloud Azure and documentation Resource Handling of Spring Cloud Azure. NOTE: Implementation of
|
Beta Was this translation helpful? Give feedback.
-
I want to enable the storage blob protocol resolver to support multiple storage account blobs.
As the
AzureStorageBlobProtocolResolver
can only resolve resources under the same storage account, it does not support resolving Blob resources under different storage accounts, I think this is a function that can be improved, and I want to try to extend this function.You are welcome to propose better solutions and participate in the discussion of this feature.
Beta Was this translation helpful? Give feedback.
All reactions