Develop/Spring Boot
2. Create Project
자라선
2020. 7. 27. 15:36
- https://spring.io/ 접속
- 네비바에 Projects / Overview / Spring Boot
- LEARN 가장 최신버전 Reference Doc.
- Getting Started 클릭
예) https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/getting-started.html#getting-started - Intellj -> create project -> maven 으로 워크스페이스와 프로젝트 생성
- Pom.xml 에 Getting Started의 문서에 Maven Installation에서 아래 목록들을 추가 작성 하고 maven 빌드
- <parent>
- <dependencies>
- <build> - 프로젝트의 src/main 에 패키지 생성 후 main 클래스 작성
예) - 실행
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}