30.3. 调用外部脚本
概述
可以执行存储在外部资源中的简单脚本,如此处所述。
script 资源的语法
使用以下语法访问作为外部资源存储的简单脚本:
resource:Scheme:Location
其中 Scheme:
可以是 classpath:
、file:
或 http:
。
例如,要从 classpath 中读取 mysimple.txt
脚本,
simple("resource:classpath:mysimple.txt")