Web/Spring

Spring boot를 위한 STS4 Maven 세팅(설치부터)

불타는고굼이 2023. 5. 30. 10:26
반응형

https://github.com/spring-projects/sts4/wiki

 

Home

The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse...

github.com

 

이전 버전 링크

https://github.com/spring-projects/sts4/wiki/Previous-Versions

 

Previous Versions

The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse...

github.com

 

본인이 사용할 버전은 4.6.0 

아래는 다운로드 링크

https://download.springsource.com/release/STS4/4.6.0.RELEASE/dist/e4.15/spring-tool-suite-4-4.6.0.RELEASE-e4.15.0-win32.win32.x86_64.self-extracting.jar

위와 같이 jar파일 생성이 되고 생성된 jar파일 클릭하면

아래와 같이 폴더 안에 파일들이 생성된다

 

https://start.spring.io/

 

추가할 Dependency

Spring Web

Thymeleaf

Mybatis

MySQL

 

 

Generate 클릭

생성

압축 푼 형태
윈도우에 세팅 되어있는 자바 버전 맞는지 확인
compiler 11버전 확인
Text file encoding UTF-8 세팅
Spring properites utf-8 변경

나머지 HTML CSS JSP 다 UTF-8로 변경해주면 된다

 

JSP 사용을 위해 Web developer tool install 필요

해서 압축 푼 파일을 불러오면 끝!

 

pom.xml 아래 추가

server를 자동으로 리셋해줌

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>
728x90
반응형