U E D R , A S I H C RSS

Spring/탐험스터디/2011

1.

  • Spring Framework 3!

    • 2011 1 7~2 25 : 매 7. 면 더 모
    • 2011 3 : 매 3

2.

3.

  • Spring

4.

  • 링3
  • 1부는
  • Spring Framework 3 루는
  • ZeroPage 링 3를 2

5.


  • 는 리더
  • 디 모

6.

  • 디를 .
  • 디 대 방대 , 디 모
  • ?!

7.1. 1

7.1.1.

1/7 1/14 1/21 1/28
O O -
O O O O
O O O O
O O O O
O O O O
O O O O
O X O X
-

7.1.2. 7

  • 7 ~ 9 30 @ 6

    • 리더




7.1.3. 14

  • : SpringSource Tool Suite Spring MVC Template
  • ... ...
7.1.3.1.1.
21

  1. 1.1 ApplicationContext xml 는 방 는 방 는데 xml .
    1.2 pojo 모듈 . 를 바 만 xml xml .
    1.3 램 : 모듈 ( 리) 모듈 만들 . TDD TDD 만들 .
    1.4 TDD : . . . 1. 무 . 2. . 3. . .
4

  1. 1.1 RESTful : . RESTful 는 리 URI를 HTTP . 리 URL .
    1.2 http 4 method : POST, GET, PUT, DELETE
    4 method : CRUD(Create, Read, Update, Delete)
    DB 4 method : Insert, Select, Update, Delete
    1.3 Resttemplate : spring RESTful template. spring를 받는 방.
7.1.3.1.2.
  • 14

    1. 1.1. : 략() 리를 미. 는 방 . 는 interface를 는데, 리는 .
      1.2. Runtime Injection : 만들 . 는데, Runtime 를 맺 . 는데 머릿 보는 .

    2. 2.1. Class.forName() 러 : .
    3. MVC
      - HomeController.java home() Welcome home! return "home"; 는데 보면 Hello world! . .
      - HomeController는 MVC 모델 롤러 모델 . home() 메 내부 Welcome home! logger 는 문 . HomeController return "home"; HomeController home.jsp()를 .
      - home.jsp Hello world!는 .

    1. Class.forName() (p.59, 60 ).
      1.1. MySQL .
      1.2. MySQL test . users를 만.
      1.3. Class.forName("com.mysql.jdbc.Driver"); 문 는데 mysql-connector-java-X.X.X.jar 를 받 브러리 .
      1.4. Connection c = DriverManager.getConnection(...); 문 는데 문 localhost/springbook 부 . localhost/test. MySQL ( root), MySQL 밀번.
      1.5. -> 료.
    2. (p.99 )
      2.1. 브러리를 는데, STS 브러리 . (http://www.tutorials4u.net/spring-tutorial/spring_install.html)를 브러리를 받 . 받 spring-framework-3.0.5.RELEASE/dist 는 jar AnnotationContext, AnnotationConfigApplicationContext, @Configuration, @Bean 등 .
  • 21

    1. 1.1. DIP : 멤 . 내부(new를 ) .
      1.1.1. Context : DI 는데, Context .
      1.2. 불변 : 불변 내부 를 말. 내부 . 따 . 는 내부 는 메를 말. 를 불변 바뀌 바뀌므 는 매번 (new) .

    2. 2.1. ConfigurationContext 내부 Bean Context를 DI를 : Context 내부 Context를 . main 났는데, Context는 Bean들 . main .
7.1.3.1.3.

    1. Spring MVC Template Project .
    2. 링 1.2 .

    1. Spring Project를 는데 Tomcat .
    2. Spring Project를 는데 .
    3. 1 Statement PreparedStatement를 봤는데 모르.
7.1.3.1.6.

95page framework .
library framework .


- Framework
- Framework library

- 브러리를 .
- .
7.1.3.1.7.
Ioc DaoFactory를 만

spring-framework-3.0.5.RELEASE/dist 는 jar 는데,
jar org.springframework.~~ 는..
면 pom.xml , 브러리 ??


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160)
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:213)
at org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:101)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:63)
at springbook.user.dao.UserDaoTest.main(UserDaoTest.java:13)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 5 more

7.2. 2

7.2.1.

2/4 2/11 2/18 2/25
O() O X
O O O O
O O O O
O O O O
O O O O
O -

7.2.2. 4

  • 3 ~ @ 6

7.3. 3

7.3.1.

3/5 3/12 3/19 3/26
O
O
X
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:05
Processing time 0.0498 sec