Blog Detail

  • Home
  • How to add landing page in spring boot application?

How to add landing page in spring boot application?

If you do not have idea about how to create the spring boot application visit my article http://samplecoder.com/how-to-create-a-spring-boot-application-in-sts/

Here I explained how can we show the index.html or landing page.

Project folder structure.

Add new html index.html

index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1>Hello!. This is my spring boot application</h1>
</body>
</html>

Go to browser http://localhost:8080/

Write a comment