[Spring Boot #13] 스프링 웹 MVC - index페이지와 파비콘
- 📚 Spring/Spring Boot
- 2020. 5. 4. 09:15
스프링 웹 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 요청시 응답 화면이다.
'📚 Spring > Spring Boot' 카테고리의 다른 글
[Spring Boot #15] 스프링 웹 MVC - HtmlUnit 써보기 (0) | 2020.05.04 |
---|---|
[Spring Boot #14] 스프링 웹 MVC - Thymeleaf (0) | 2020.05.04 |
[Spring Boot #12] 스프링 웹 MVC - 정적 리소스 (0) | 2020.05.03 |
[Spring Boot #11] 스프링 웹 MVC - HttpMessageConverters (0) | 2020.05.03 |
[Spring Boot #10] 스프링 부트 테스트 (Spring Boot Test) (0) | 2020.04.29 |