[Spring Boot #13] 스프링 웹 MVC - index페이지와 파비콘

스프링 웹 MVC 인덱스 페이지

웰컴 페이지 : 웹 애플리케이션의 root(/) 로 요청했을 때 보여주는 페이지이다. index.html을 만들고 resources/static/ 안에 두면 root(/) 요청 시 애플리케이션이 해당 html 파일을 반환한다.

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>웰컴!!!! 스프링 부트</h1>

</body>
</html>

http://localhost:8080

 

스프링 파비콘(favicon.ico) 설정

*resource/static/ 아래 경로에 파비콘을 추가한다. 주의할 점은 파일명을  꼭 favicon.ico 로 해야한다.

http://localhost:8080 요청시 응답 화면이다.

댓글

Designed by JB FACTORY