URL
同一资源定位符
https://home.firefoxchina.cn/
协议://ip地址:端口/项目名/资源
基本方法
public class Url {
public static void main(String[] args) throws MalformedURLException {
URL url = new URL("http://localhost:8080/helloworld?index.jsp?name=www&pwd=123");
System.out.println(url.getProtocol());