tobby48 3 years ago
parent
commit
d4c1b50f44

+ 1
- 1
src/kr/co/swh/lecture/network/URLEx1.java View File

@@ -20,7 +20,7 @@ public class URLEx1 {
20 20
         URL opinion = null;
21 21
         URL homepage = null;
22 22
         try {
23
-            homepage = new URL("http://swhcoding.com:8080"); 	//	절대 경로
23
+            homepage = new URL("http://swhcoding.com:3000"); 	//	절대 경로
24 24
             opinion = new URL(homepage, "s/sw_network.html"); 	//	상대 경로
25 25
         } catch (MalformedURLException e) {
26 26
             System.out.println("잘못된 URL입니다.");

+ 1
- 1
src/kr/co/swh/lecture/network/URLEx2.java View File

@@ -20,7 +20,7 @@ import java.net.URL;
20 20
 public class URLEx2 {
21 21
 	public static void main(String[] args) {
22 22
 		try {
23
-            URL url= new URL("http://swhcoding.com:8080/s/sw_network.html");
23
+            URL url= new URL("http://swhcoding.com:3000");
24 24
             //	Case1 : URL방식
25 25
             BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
26 26