본문으로 바로가기

Spring Framework 시작

category Programing/Spring 2017. 11. 11. 10:10
반응형

스프링의 시작

 

1. 메이븐 프로젝트 생성

 

new -> Spring Project -> 탬플릿에서 Simple Spring Maven 선택 후 생성

 

2. 기본 폼 생성

 

  -> pom.xml 을 수정하여 직접 라이브러리를 조작할 수 있음

 

 <dependencies>
  <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>4.3.2.RELEASE</version>
  </dependency>


 </dependencies>

 

 

이와같이 <dependencies> 로 묶인 부분을 조작

 

ex) mvnrepository.com 에 접속해서 spring을 검색, Spring Context를 선택 후 원하는 버전을 선택

가운데에 있는 소스를 복사하여 Spring에 와서 붙혀넣기

반응형