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.

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