类 ResourceEditor

java.lang.Object
java.beans.PropertyEditorSupport
cn.taketoday.core.io.ResourceEditor
所有已实现的接口:
PropertyEditor

public class ResourceEditor extends PropertyEditorSupport
Editor for Resource descriptors, to automatically convert String locations e.g. file:C:/myfile.txt or classpath:myfile.txt to Resource properties instead of using a String location property.

The path may contain ${...} placeholders, to be resolved as Environment properties: e.g. ${user.dir}. Unresolvable placeholders are ignored by default.

Delegates to a ResourceLoader to do the heavy lifting, by default using a DefaultResourceLoader.

从以下版本开始:
4.0 2022/2/17 17:49
作者:
Juergen Hoeller, Dave Syer, Chris Beams, Harry Yang
另请参阅: