1调用getResource方法
public interface Resource extends InputStreamSource {
==============仅显示filename方法和其备注============
/**
* Determine a filename for this resource, i.e. typically the last
* part of the path: for example, "myfile.txt".
* <p>Returns {@code null} if this type of resource does not
* have a filename.
*/
@Nullable
String getFilename();
}
调用以上方法可以得到文件名包括后缀