스프링 이니셜라이저 웹에서 스프링부트 웹 시작하기

(스프링 이니셜라이저로 스프링부트 웹 시작하기에서 넘어옴)

1 개요[ | ]

스프링부트 Web 기본
SPRING INITIALIZR 실습

2 프로젝트 생성[ | ]

  • http://start.spring.io/ 접속
  • Group: com.example
  • Aritfact: demo
  • Dependencies: Web
  • [Generate Project] 클릭 --- demo.zip 다운로드
  • 압축 해제

3 STS에 임포트[ | ]

  • STS 실행
  • Package Explorer 우클릭 Import... --- Existing Maven Projects --- [Next >]
  • [Browse...] 폴더 지정
  • [Finish]

4 DemoApplication.java[ | ]

  • 수정없는 기본값임
package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
}

5 실행 확인[ | ]

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}