Skip to content

Commit 8b62306

Browse files
committed
.
1 parent e668017 commit 8b62306

9 files changed

Lines changed: 74 additions & 129 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
node_modules/
2+
.vscode/
3+
.gradle/
4+
.settings/
5+
bin/
6+
build/
7+
temp/
8+
Debug/
9+
Release/
10+
11+
package-lock.json
12+
.DS_Store
13+
.classpath
14+
.project
15+
*.class
16+
*.log
17+
*.ctxt
18+
.mtj.tmp/
19+
*.war
20+
*.ear
21+
*.out
22+
*.exe
23+
hs_err_pid*

Lesson02/src/lesson02/client/SimpleHttpClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@
88
public class SimpleHttpClient {
99

1010
public static void main(String[] args) throws Exception {
11-
Socket socket = new Socket("www.daum.net", 80);
11+
Socket socket = new Socket("www.hani.co.kr", 80);
1212
BufferedReader in = new BufferedReader(
1313
new InputStreamReader(socket.getInputStream()));
1414
PrintStream out = new PrintStream(
1515
socket.getOutputStream());
16-
16+
1717
//1. 요청라인
1818
out.println("GET / HTTP/1.1");
19-
19+
2020
//2. 헤더정보
21-
out.println("Host: www.daum.net");
21+
out.println("Host: www.hani.co.kr");
2222
out.println("User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0)"
2323
+ " AppleWebKit/537.36 (KHTML, like Gecko)"
2424
+ " Chrome/30.0.1599.101 Safari/537.36");
2525
//3. 공백라인
2626
out.println();
27-
27+
2828
String line = null;
2929
while((line = in.readLine()) != null) {
3030
System.out.println(line);
3131
}
32-
32+
3333
in.close();
3434
out.close();
3535
socket.close();

Lesson08/.classpath

Lines changed: 7 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="output" path="bin"/>
4-
<classpathentry kind="src" path="src/main/java"/>
5-
<classpathentry kind="src" path="src/main/resources"/>
6-
<classpathentry kind="src" path="src/test/java"/>
7-
<classpathentry kind="src" path="src/test/resources"/>
8-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
9-
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container" exported="true"/>
10-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.0.3.RELEASE/b71c2baa9bdf23951bb730f42cf27259317d83c4/spring-context-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.0.3.RELEASE/782a71a312dc307fa531023aa66247b9b4a109d/spring-context-4.0.3.RELEASE.jar" exported="true">
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
114
<attributes>
12-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
13-
</attributes>
14-
</classpathentry>
15-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2/73d0340eaecbb0ec9d3e0ace90547ef08cbfaf27/commons-collections-3.2-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2/f951934aa5ae5a88d7e6dfaa6d32307d834a88be/commons-collections-3.2.jar" exported="true">
16-
<attributes>
17-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
18-
</attributes>
19-
</classpathentry>
20-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/28e0ad201304e4a4abf999ca0570b7cffc352c3c/junit-4.11-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/4e031bb61df09069aeb2bffb4019e7a5034a4ee0/junit-4.11.jar" exported="true">
21-
<attributes>
22-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
23-
</attributes>
24-
</classpathentry>
25-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/28bb0405fddaf04f15058fbfbe01fe2780d7d3b6/commons-logging-1.1.3-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f/commons-logging-1.1.3.jar" exported="true">
26-
<attributes>
27-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
28-
</attributes>
29-
</classpathentry>
30-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/4.0.3.RELEASE/ddd76a3c9e1e1957d81b5294859f67d7fd0c104b/spring-core-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/4.0.3.RELEASE/138d28200d97f4affe9ccaa47fab54718b438319/spring-core-4.0.3.RELEASE.jar" exported="true">
31-
<attributes>
32-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
33-
</attributes>
34-
</classpathentry>
35-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.0.3.RELEASE/c0324f7c7a33ce6fb2d3543ba811828a8f68350e/spring-beans-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.0.3.RELEASE/41eabd53fd4ba5ba2b2d8af6c256a3741f65c2f3/spring-beans-4.0.3.RELEASE.jar" exported="true">
36-
<attributes>
37-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
38-
</attributes>
39-
</classpathentry>
40-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/4a4b6d692e17846a9f3da036438a7ac491d3c814/aopalliance-1.0-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar" exported="true">
41-
<attributes>
42-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
43-
</attributes>
44-
</classpathentry>
45-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.0.3.RELEASE/78f4f26931a651f8236758b449355fe9204d96c1/spring-aop-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.0.3.RELEASE/dcedf5329d7092d66cc9d2496687a5f29d883eb6/spring-aop-4.0.3.RELEASE.jar" exported="true">
46-
<attributes>
47-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
48-
</attributes>
49-
</classpathentry>
50-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.0.3.RELEASE/dac3409a856fadefc7ad36cdc78d2b13af398ef2/spring-expression-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.0.3.RELEASE/40b25b3a693cb4cc382ddf2e69ff1b29c75a2e7d/spring-expression-4.0.3.RELEASE.jar" exported="true">
51-
<attributes>
52-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
53-
</attributes>
54-
</classpathentry>
55-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b/hamcrest-core-1.3-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar" exported="true">
56-
<attributes>
57-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
587
</attributes>
598
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/"/>
10+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
11+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
12+
<classpathentry kind="output" path="bin/default"/>
6013
</classpath>

Lesson08/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@
2020
<arguments>
2121
</arguments>
2222
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
2328
</buildSpec>
2429
<natures>
2530
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
2631
<nature>org.eclipse.jdt.core.javanature</nature>
2732
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
2833
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
2934
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
35+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
3036
</natures>
3137
</projectDescription>
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#
2-
#Sun Apr 27 11:45:26 KST 2014
3-
org.eclipse.jdt.core.compiler.debug.localVariable=generate
4-
org.eclipse.jdt.core.compiler.compliance=1.7
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
54
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.7
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
68
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
7-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
811
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
9-
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
10-
eclipse.preferences.version=1
11-
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
1212
org.eclipse.jdt.core.compiler.source=1.7
13-
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

Lesson09/.classpath

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="output" path="bin"/>
4-
<classpathentry kind="src" path="src/main/java"/>
5-
<classpathentry kind="src" path="src/main/resources"/>
6-
<classpathentry kind="src" path="src/test/java"/>
7-
<classpathentry kind="src" path="src/test/resources"/>
8-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
9-
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container" exported="true"/>
10-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.0.3.RELEASE/b71c2baa9bdf23951bb730f42cf27259317d83c4/spring-context-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.0.3.RELEASE/782a71a312dc307fa531023aa66247b9b4a109d/spring-context-4.0.3.RELEASE.jar" exported="true">
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
114
<attributes>
12-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
137
</attributes>
148
</classpathentry>
15-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2/73d0340eaecbb0ec9d3e0ace90547ef08cbfaf27/commons-collections-3.2-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2/f951934aa5ae5a88d7e6dfaa6d32307d834a88be/commons-collections-3.2.jar" exported="true">
9+
<classpathentry kind="src" output="bin/main" path="src/main/resources">
1610
<attributes>
17-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
18-
</attributes>
19-
</classpathentry>
20-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/28e0ad201304e4a4abf999ca0570b7cffc352c3c/junit-4.11-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/4e031bb61df09069aeb2bffb4019e7a5034a4ee0/junit-4.11.jar" exported="true">
21-
<attributes>
22-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
23-
</attributes>
24-
</classpathentry>
25-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/28bb0405fddaf04f15058fbfbe01fe2780d7d3b6/commons-logging-1.1.3-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f/commons-logging-1.1.3.jar" exported="true">
26-
<attributes>
27-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
28-
</attributes>
29-
</classpathentry>
30-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/4.0.3.RELEASE/ddd76a3c9e1e1957d81b5294859f67d7fd0c104b/spring-core-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/4.0.3.RELEASE/138d28200d97f4affe9ccaa47fab54718b438319/spring-core-4.0.3.RELEASE.jar" exported="true">
31-
<attributes>
32-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
33-
</attributes>
34-
</classpathentry>
35-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.0.3.RELEASE/c0324f7c7a33ce6fb2d3543ba811828a8f68350e/spring-beans-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.0.3.RELEASE/41eabd53fd4ba5ba2b2d8af6c256a3741f65c2f3/spring-beans-4.0.3.RELEASE.jar" exported="true">
36-
<attributes>
37-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
38-
</attributes>
39-
</classpathentry>
40-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/4a4b6d692e17846a9f3da036438a7ac491d3c814/aopalliance-1.0-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar" exported="true">
41-
<attributes>
42-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
43-
</attributes>
44-
</classpathentry>
45-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.0.3.RELEASE/78f4f26931a651f8236758b449355fe9204d96c1/spring-aop-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.0.3.RELEASE/dcedf5329d7092d66cc9d2496687a5f29d883eb6/spring-aop-4.0.3.RELEASE.jar" exported="true">
46-
<attributes>
47-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
48-
</attributes>
49-
</classpathentry>
50-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.0.3.RELEASE/dac3409a856fadefc7ad36cdc78d2b13af398ef2/spring-expression-4.0.3.RELEASE-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.0.3.RELEASE/40b25b3a693cb4cc382ddf2e69ff1b29c75a2e7d/spring-expression-4.0.3.RELEASE.jar" exported="true">
51-
<attributes>
52-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
53-
</attributes>
54-
</classpathentry>
55-
<classpathentry sourcepath="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b/hamcrest-core-1.3-sources.jar" kind="lib" path="/Users/eomjinyoung/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar" exported="true">
56-
<attributes>
57-
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
11+
<attribute name="gradle_scope" value="main"/>
12+
<attribute name="gradle_used_by_scope" value="main,test"/>
5813
</attributes>
5914
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/"/>
16+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
17+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
18+
<classpathentry kind="output" path="bin/default"/>
6019
</classpath>

Lesson09/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@
2020
<arguments>
2121
</arguments>
2222
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
2328
</buildSpec>
2429
<natures>
2530
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
2631
<nature>org.eclipse.jdt.core.javanature</nature>
2732
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
2833
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
2934
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
35+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
3036
</natures>
3137
</projectDescription>
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#
2-
#Sun Apr 27 11:45:26 KST 2014
3-
org.eclipse.jdt.core.compiler.debug.localVariable=generate
4-
org.eclipse.jdt.core.compiler.compliance=1.7
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
54
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.7
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
68
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
7-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
811
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
9-
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
10-
eclipse.preferences.version=1
11-
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
1212
org.eclipse.jdt.core.compiler.source=1.7
13-
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

0 commit comments

Comments
 (0)