getResourcePath

Retrieves the Path for a resource located in the classpath.

This function uses the class loader of ResourceUtils to find the specified resource.

Return

The Path object representing the resource.

Parameters

name

The name of the resource to locate. This should be the path to the resource relative to the classpath root (e.g., "my_file.txt" or "some/folder/my_file.txt").

Throws

if the resource with the given name is not found.