[pom.xml 추가]
프로젝트 우클릭 > 스프링 > 스프링 스타터>

pom.xml에 추가됨
<!-- thymeleaf -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
부트에서는 더이상 jstl 안씀 구닥다리
좀 더 빠른 형태인 타임리프 사용
[application.properties 파일 세팅]
프로퍼티스파일은 분리 가능
src/main/resource > new > other >

일반 파일을 생성하여 .properties로 만들기
>정상적인 프로퍼티스 파일이 아님
세팅하려면


이렇게 하면 정상적인 프로퍼티스 파일로 변함
application.properties파일은 프로젝트의 기본 프로퍼티 파일
그래서 application.properties 파일을 실행할 때 인클루드하여 실행될 수 있도록 아래 코드를 추가하여 세팅
#외부 추가 properties를 로드하는 방법
spring.config.import=app2.properties
이렇게 해도 자동완성이 안됨
[자동완성 설정]
STS4 상단 > 프리퍼런스 >

파일 어소시에이이션 add >

저 아래에 있는 *.properties는 작동안해서 따로 추가

에디터도 추가하기

여기도 추가
완!료!
근데 아직이다 야발

이거로 열면 됨 ㅎ.
[타임리프 프로퍼티스 세팅]
#Thymeleaf 환경설정
spring.thymeleaf.cache=false
spring.thymeleaf.check-template-location=true
spring.thymeleaf.enabled=true
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.jsp
spring.thymeleaf.mode=html
spring.thymeleaf.view-names=/*