์คํ๋ง ์น ๊ฐ๋ฐ ๊ธฐ์ด
-์ ์ ์ฝํ ์ธ
๊ทธ๋ฅ ํ์ผ์ ์น๋ธ๋ผ์ฐ์ ์ ์ ๋ฌ
-MVC์ ํ ํ๋ฆฟ ์์ง
Model/View/Controller , ํ ํ๋ฆฟ ์์ง : html์ ๋์ ์ผ๋ก ๋ฐ๊พธ์ด ๋ณด๋ด์ค
์๋ฒ์์ ๋ณํ์์ ๋ฐ๊พธ์ด ๋ณด๋
-API
Json ๋ฐ์ดํฐ ๊ตฌ์กฐ ํฌ๋งท์ผ๋ก ํด๋ผ์ด์ธํธ์ ์ ๋ฌ
Spring Boot Features
Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest
docs.spring.io
resources/static ์ html ํ์ผ์์ฑ
resources/static/hello-static.html
<!DOCTYPE HTML>
<html>
<head>
<title>static content</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
์ ์ ์ปจํ
์ธ ์
๋๋ค.
</body>
</html>
ํ์ผ๋ช ๊ทธ๋๋ก url ์ ๊ทผ
0. ์น ๋ธ๋ผ์ฐ์ ์ hello-static.html ๊ฒ์
1. ๋ด์ฅ ํฐ์บฃ ์๋ฒ๊ฐ ์์ฒญ์ ๋ฐ์ ์คํ๋ง์๊ฒ ๋๊น
๋จผ์ ์ปจํธ๋กค๋ฌ์ "hello-static" ์ด ์๋์ง ์ฐพ์๋ด ( ์ปจํธ๋กค๋ฌ๊ฐ ์ฐ์ ์์๋ฅผ ๊ฐ์ง )
hello-static ์ปจํธ๋กค๋ฌ๋ ์๊ธฐ์
2. resources์์ hello-static์ ์ฐพ๋๋ค
3. ์น ๋ธ๋ผ์ฐ์ ์ ๋ฐํ
resources/static/hello-static.html ํ์ผ์ด ์์ง๋ง
์ปจํธ๋กค๋ฌ๊ฐ ์ฐ์ ์์๊ฐ ๋๋ ๊ฒ์ ํ์ธํ ์ ์์
'Spring > Spring ์ ๋ฌธ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์คํ๋ง ์ ๋ฌธ - (7) API (0) | 2023.01.12 |
---|---|
์คํ๋ง ์ ๋ฌธ - (6) MVC์ ํ ํ๋ฆฟ ์์ง (0) | 2023.01.12 |
์คํ๋ง ์ ๋ฌธ - (4) ๋น๋ํ๊ณ ์คํํ๊ธฐ (0) | 2023.01.10 |
์คํ๋ง ์ ๋ฌธ - (3) Welcome Page ๋ง๋ค๊ธฐ / View ํ๊ฒฝ์ค์ (0) | 2023.01.09 |
์คํ๋ง ์ ๋ฌธ - (2) ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ดํด๋ณด๊ธฐ (0) | 2023.01.09 |