To avoid lines of arbitrary argument parsing code, this main method USES the Apache Commons CLI project to parse the arguments sent to it from the command line.
为了避免随意的实参解析代码,main方法使用了Apache Commons CLI项目来解析从命令行发送给它的这些实参。
If we permitted arbitrary objects as case labels, then calling the equals method might have unpredictable side-effects.
如果我们允许将任意对象用作case标签,那么调用equals方法可能具有意外的副作用。
In the last case, of course, instances of the Product are treated as folders; then the last part of the URL names the method to be called, and it returns arbitrary HTML.
当然,在最后一种情况下,Product的实例被当作文件夹看待;那么URL的最后部分指定了将被调用的方法,该方法返回任意的HTML。
应用推荐