본문 바로가기

Spring

이클립스 spring maven 프로젝트 생성

 

 

 

 

maven
내가 필요한 라이브러리를 다운 받아 버리는 형식

 

 

group id org.springframework
appect id spring-context
version  5.2.9.RELEASE

위와 같은 내용이다

 

 

pom.xml 

현재 사용할 라이브러리를 설정 다운

 

https://spring.io/guides/gs/spring-boot/

 

Building an Application with Spring Boot

this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and techniques as recommended by the Spring team

spring.io

 

 

 

빌드 추가

 

 

maven 참조 사이트
http://repo1.maven.apache.org/maven2/

 

다운 및 업데이트 단축키는

alt + F5 (조그마한 변경 사항이 있다면 저장 후 무조건 해줄 것)

 

 

 

 

Context.xml

https://atoz-develop.tistory.com/entry/Spring-%EC%8A%A4%ED%94%84%EB%A7%81-XML-%EC%84%A4%EC%A0%95-%ED%8C%8C%EC%9D%BC-%EC%9E%91%EC%84%B1-%EB%B0%A9%EB%B2%95-%EC%A0%95%EB%A6%AC

 

 

 

애노테이션 설정을 사용하기 위한 포맷을 넣어준다

 

 

 

 

 

설정 파일로 처음부터 객체를 만들어 놓고 출발하느냐

bean 객체 생성

 

 

얻어짐으로써 올바르게 객체 생성 댐

 

 

어노테이션을 이용한 객체 생성

 

초기 버전 (이 코드 자체는 spring 자체에서 할당되어 있다.)