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.0506 sec