Create a new file named /WebContent/index.jsp, with the following content:
<%@ page contentType="text/html;charset=UTF-8" language="kotlin" %>
<html>
<head>
<title>Spring MVC Kotlin</title>
</head>
<body>
<br>
<div style="text-align: center">
<h2>
Hey You..!! This is your 1st Spring MCV Tutorial..<br> <br>
</h2>
<h3>
<a href="greeting.html">Click here to See Welcome Message... </a>(to
check Spring MVC Controller... @RequestMapping("/greeting"))
</h3>
</div>
</body>
</html>
Then create another file named /WebContent/WEB-INF/jsp/greeting.jsp, with the following content:
<html>
<head>
<title>Spring MVC Kotlin</title>
</head>
<body>
${message}
</body>
</html>