Skip to content

Allow property binding of resource to be defined as a raw string / resource content #28714

Open
@nightswimmings

Description

@nightswimmings

I am not sure this is more suited for Spring-Boot or Spring Core, but I think it would be beneficial to allow resources to be defined as plain strings.

The idea of Resource is abstracting a resource, whether it comes from a file, an url, etc.. so why not plain text? That way we allow the user passing a file with "foobar" but also the content itself, which would be impossible now

Perhaps something like
my-resource-binded-property: "raw:file_content"
(where "raw" could be a keyword prefix like "classpath:", or "bare:" or "string:")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions