Spring 입문 홈 화면 추가

먼저 home화면을 다음과 같이 예제 코드를 사용하여 구성하였다.home컨트롤러에 @GetMapping 추가하여 home.html을 연결하였다. 우선 순위 상 index.html보다 위에 있으므로 index.html이 아닌 home.html이 띄워지게 된다. http&

2023년 8월 21일
·
0개의 댓글
·

Spring 입문 MVC와 템플릿엔진

MVC: model, view, controller기존 model1 방식으로는 view에서 controller의 기능까지 다 구현했었다.(jsp)지금은 따로 분리해서 구현 (- 선택과 집중)HelloController에 다음 코드를 추가한다. template디렉토리에

2023년 8월 17일
·
0개의 댓글
·