Develop/Spring Boot

2. Create Project

자라선 2020. 7. 27. 15:36
  1. https://spring.io/  접속
  2. 네비바에 Projects / Overview / Spring Boot
  3. LEARN 가장 최신버전 Reference Doc.
  4. Getting Started 클릭
    ) https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/getting-started.html#getting-started
  5. Intellj -> create project -> maven  으로 워크스페이스와 프로젝트 생성
  6. Pom.xml Getting Started 문서에 Maven Installation에서 아래 목록들을 추가 작성 하고 maven 빌드
    - <parent>
    - <dependencies>
    - <build>
  7. 프로젝트의 src/main 패키지 생성 main 클래스 작성
    )
  8. 실행
@SpringBootApplication

public class Application {

    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);

    }

}