최단! STS4에서 Spring boot 기초 기초 기초 기초
6122 단어 STSSpringBootspring-boot
개요
STS와 SpringBoot를 처음 사용하는 사람을 위한 절차입니다.
STS4에서 다음 방법을 확인하십시오.
- Spring boot 데모 사이트 만들기
- 데모 사이트 실행
- 프로젝트 내보내기 및 가져오기
- 실행 파일 작성
데모 사이트 만들기
프로젝트 만들기
프로젝트 만들기

새로운 Spring 스타터 프로젝트

새로운 Spring 스타터 프로젝트 종속성

새로운 Spring 스타터 프로젝트

완료

데모 사이트에 HTML 추가
> 데모
> src/main/resources
> static
index.html 파일 만들기
※ static을 마우스 오른쪽 버튼으로 클릭하고 신규 -> 파일을 누르십시오
이하를 입력하고 [완료]를 누릅니다.
파일명:index.html

데모 사이트 실행
Spring Boot 애플리케이션 실행


웹 브라우저에서 열기


프로젝트 내보내기
내보내기 실행

선택

아카이브 파일

프로젝트의 Import
가져오기 수행

선택

프로젝트 가져오기


실행 파일 작성
Maven 빌드 실행

구성 편집

파일 확인
$ cd ~
$ cd workspace-sts4/demo/target
$ ls
classes generated-sources maven-status
demo-1-0.0.1-SNAPSHOT.jar generated-test-sources surefire-reports
demo-1-0.0.1-SNAPSHOT.jar.original maven-archiver test-classes
파일 실행
$ java -jar demo-1-0.0.1-SNAPSHOT.jar


이상이 됩니다.
사용법에 있어서의 기본이 되기 때문에, 알아 두어도 손해는 없다고 생각합니다.
이 절차는 2020/04/19 시점에서 실행할 수 있는지 확인하고 있습니다.
Reference
이 문제에 관하여(최단! STS4에서 Spring boot 기초 기초 기초 기초), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/akrian/items/f3fd2e444de8dd0f8404텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)