728x90
๊ณตํต์ ์ผ๋ก ์ฌ์ฉํ๋ ๋ถ๋ถ๋ค์ ๋ํด์๋ ๋ชจ๋ํ๋ฅผ ํ์ฌ ์ฝ๊ฒ ์ ์ฉํ ์์๋ค .
layout.html์์ฑ

<head>๋ฅผ includeํ ๊ฑฐ์
<!DOCTYPE html>
<head th:fragment="head">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" th:href="@{/bootstrap.min.css}" />
<!-- sbb CSS -->
<link rel="stylesheet" type="text/css" th:href="@{/style.css}" />
<title>Hello, sbb!</title>
</head>
<body>
<!-- th:fragment="์ด๋ฆ" ์ผ๋ก ๊ณตํต ํ๊ทธ๋ถ๋ถ ์์ฑ -->
</body>
</html>
question_list.html ๊ณผ question_detail <head> ๋ณ๊ฒฝ
<head th:replace=" layout::head " ></head>
์ ์ฉํ๊ณ ์๋ฌ ์๋๋์ง ํ
์คํธํด๋ณด๊ธฐ
728x90
'BACKEND > SpringBoot' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| ๋ต๋ณ(Answer) ์ ํจ์ฑ ๊ฒ์ฌ ์ถ๊ฐ (0) | 2023.11.09 |
|---|---|
| ์ง๋ฌธ ๋ฑ๋ก ์ฒ๋ฆฌ ๋ฐ ์ ํจ์ฑ๊ฒ์ฌ (5) | 2023.11.09 |
| ์ง๋ฌธ ๋ชฉ๋ก/์์ธ๋ณด๊ธฐ - ๋ถํธ์คํธ๋ฉ ์ ์ฉ (0) | 2023.11.09 |
| ์คํํฑ ๋๋ ํฐ๋ฆฌ์ ์คํ์ผ์ํธ (0) | 2023.11.09 |
| ๋ต๋ณ ๋ฑ๋กํ๊ธฐ (0) | 2023.11.09 |