본문 바로가기

Spring Boot

[스프링 입문] View 환경설정

controller 폴더를 만들고 HelloController 클래스에 작성한다.


attributeValue가 templates 아래의 hello.html의 data에 전달되고, 화면에 나타나게 된다.

 

hello.html

실행하면,

 

 

김영한 강사님의 '스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술'을 듣고 정리한 내용입니다.

스프링 입문ㅇ - 코드로 배우는 스

 

 

 

프링 부트, 웹 MVC, DB 접근 기술