본문 바로가기
SpringBoot

[SpringBoot]설치 및 설정

by 근근커 2022. 10. 24.

https://spring.io/tools

 

Spring Tools 4 is the next generation of Spring tooling

Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE.

spring.io

사이트에 들어가 자신에게 맞는 OS 다운로드

다운로드를 완료하면 jar파일이 생기는데 위치를 D 드라이브 또는 D 드라이브가 없다면 찾기 쉽게 본인 작업 폴더에 위치

파일 위치를 옮긴 뒤 cmd 창을 이용하여 jar파일 압축 풀기

해당 파일이 위치한 디렉토리에서 java -jar 파일명을 입력하여 압축 해제

압축이 성공적으로 해제되면 jar파일이 있던 폴더에 sts-4.16.0.RELEASE 폴더가 생김

해당 폴더 내부의 SpringToolSuite4.exe를 실행하면 완료

 

툴 실행 후 SpringBoot Starter Project 실행

Name-프로젝트 이름
Type-라이브러리 관리 도구
Packaging-내장 WAS 톰캣 서버 사용시에는 War 사용
Java Version-11이상

필요한 라이브러리를 검색후 선택하여 추가하여 Finish

 

src/main/resources
static-정적 웹 리소스 넣는 곳(html,css,image,...)
application.properties-설정 파일,유사 xml(프로젝트 전체에 적용되는 속성 정보)


src
동적 웹 리소스 넣는 곳(JSP,...)


build.gradle
pom.xml 대신 사용(라이브러리 디펜던시 설정) 

내장된 톰캣 서버의 기본 폰트 번호는 8080
오라클과 함께 사용하면 충돌 발생
->application.properties(server.port=8088)

좌측 하단의 Dashboard를 실행시켜보면

아래와같은 결과

이로써 설정 끝

'SpringBoot' 카테고리의 다른 글

[SpringBoot]JPA  (0) 2022.11.05
[SpringBoot]JdbcTemplate  (0) 2022.10.27
[SpringBoot]gradle JSP 연동  (0) 2022.10.25

댓글