STS4에서 Mustache 수동 연결하기

yesrin·2023년 10월 26일
0

Eclipse

목록 보기
1/1

STS4는 https://spring.io/tools 여기서 다운받을 수 있다.
압축해서 다닐수 있는게 장점인듯 하다.

spring boot devtool을 추가하면 저장(Ctr+S)시 코드 변경을 자동으로 감지해서 서버를 재시작 해준다. 매우유용.


이런식으로 처음에 추가해주지 못했다면?
수동으로 연결을 해줘야 한다.

STS4(이클립스)에서 머스티치를 연결해보자

아래 링크에서

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-mustache/3.1.5

gradule (short) 탭 선택 복사 붙여넣기

implementation 'org.springframework.boot:spring-boot-starter-mustache:3.1.5'

mustache에서 HTML 인식할수 있도록 application.properties에 코드추가

파일 확장자를 html => mustache로 받아들이겠다.

spring.mustache.suffix= .html
server.servlet.encoding.force=true #한글 안깨지게
  1. help – marketplace – web developer 설치

  2. main/resources/template 마우스오른쪽 – new – other – web – html – home.html 추가

STS 깃허브 연결하는법
https://velog.io/@sanna/STS4-create-Java-project-and-connect-gitgithub

인텔리제이가 훨 편한듯 하다.

profile
안녕하세요! 틀린 정보는 댓글 달아 주세요.

0개의 댓글