dependenceies
1. Spring Web
2. Thymeleaf // template engine
3. Spring boot DevTools // for LiveReload
setting > build tools > Gradle
build and run using - Gradle 에서 intellij IDEA 로 변경
// 삭제:
// implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
//추가:
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
implementation 'javax.servlet:jstl'
# 경로
spring.mvc.view.prefix= /WEB-INF/views/
spring.mvc.view.suffix= .jsp
# jsp 수정시 자동반영 - 확인 필요
server.servlet.jsp.init-parameters.development=true
코드내용
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
hello
</body>
</html>