티스토리 뷰

반응형

Spring4 예제

* 메이븐 형태 아님

 

  • Spring 4.0.1.RELEASE
  • JDK 1.6
  • Tomcat 7.0
  • Eclipse or STS

 

- 첨부파일

Spring4HelloWorld.zip
4.34MB

 

출처 :

https://www.dineshonjava.com/spring-4-framework-hello-world-example/

 

Spring 4 Framework Hello World Example - Dinesh on Java

Previous Next In this tutorial you will learn how to develop a Spring 4 Framework Hello world example. We hope this tutorial will give you a quick start with Spring MVC development using the latest Spring 4 Release.Here first I downloaded the new release o

www.dineshonjava.com

https://sites.google.com/a/dineshonjava.com/dineshonjava/dineshonjava/Spring4HelloWorld.zip?attredirects=0&d=1

불러오는 중입니다...

 

 

 스프링 3.0 부터 서블릿 세팅 시

<context:component-scan .. />

<annotation-driven /> 

을 선언해야 함.

 

<annotation-driven /> : @RequestMapping 어노테이션을 URI RequestMapping 

<context:component-scan .. />  : @Controller, @Component, @Repository, @Service 등의 어노테이션을 참조하여 빈 등록

 

 

 

 

 

끗!@#!@

반응형