[김영한님의 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술] 프로젝트 환경설정 - 'View 환경설정' 수정
This commit is contained in:
@@ -42,7 +42,9 @@
|
||||
---
|
||||
|
||||
## 동작 환경 그림
|
||||
- 웹 브라우저에서 `hello`로 접근하면 내장 톰캣 서버가 `HelloController`에 존재하는 `hello`메서드의 `hello` url에 매칭되어 `hello` 메서드가 실행된다.
|
||||

|
||||
|
||||
- 웹 브라우저에서 `hello`로 접근하면 내장 톰캣 서버가 `HelloController`에 존재하는 `hello` url이 매핑되어 있는 `hello` 메서드를 찾아서 실행시킨다.
|
||||
- 이때 `model`에 키는 `data`, 값은 `hello!!`로 넣는다.
|
||||
- 그리고 `hello`(`resources`에 존재하는 `hello`)를 리턴한다.
|
||||
- 이것은 `resources/templates/hello`에 접근해서 랜더링(저 화면을 실행시켜라)하라는 의미이다.
|
||||
|
||||
BIN
SpringBoot-Introduction/Lectures/images/동작-환경-그림.PNG
Normal file
BIN
SpringBoot-Introduction/Lectures/images/동작-환경-그림.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Reference in New Issue
Block a user