I give url as parameter to my java code, i have a script which i use to call my java code:
java -cp lib/aspose-cells-8.0.1.jar:lib/json-20140107.jar:lib/jsoup-1.7.3.jar:bin jsoup.$@
when i run my script with url, my url is seperated to parts beacuse of "&" symbol
bash myscript.sh MyJavaCode http://www.mavi.com/Erkek/Gomlek/c/3-4?pageSize=all&q=%3AtopRated&sort=topRated#
i want my java code accept this url as one parameter, but unfortunately my code take this url as 3 part:
尝试将其放在“”中,以便将其解析为字符串arg。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.