return "hello";
)를 반환하면 뷰 리졸버(viewResolver
)가 화면을 찾아서 처리합니다.
resources:templates/
+ {ViewName} + .html
yml
에서 경로를 변경해줄 수도 있습니다.
spring:
thymeleaf:
prefix: classpath:/templates/
suffix: .html
참고 :
spring-boot-devtools
라이브러리를 추가하면html
파일을 컴파일만 하면 서버 재시작 없이 View 파일 변경이 가능합니다. case IntelljJ : 메뉴 - build - Recompile
참고 :
hotSwap
기능을 사용하면Recompile
도 자동으로 됩니다.