出于安全考虑。不指定 scheme 的话默认是 classpath://,只能访问项目 classpath 下的。你要想任意路径的话就得加 file://。P.S. 其实它也支持网络路径,如 http://、https:// 等。
出于安全考虑。
不指定 scheme 的话默认是
classpath://
,只能访问项目 classpath 下的。你要想任意路径的话就得加file://
。P.S. 其实它也支持网络路径,如
http://
、https://
等。