Listing 4 shows the beginning of the sample wrapper script, which defines a usage message that displays if you execute the script with no arguments or the wrong number of arguments.
清单4给出了此示例包装器脚本的开始部分,其中定义了一个使用消息,如果在没有参数或参数数量错误的情况下执行该脚本,就会显示这个消息。
Following this code, the script defines a simple product catalog as an array, with the array keys as SKUs and the corresponding values holding product information.
在这几行代码之后,脚本将一个简单产品目录定义为一个数组,以数组键为SKUs,而对应的值存放产品信息。
ScriptSource defines how Spring accesses the actual script source code; for example, via the file system or a URL.
ScriptSource定义Spring如何访问实际的脚本源代码;例如,通过文件系统或url。
应用推荐