본문 바로가기

공부/Spring

스프링 부트 3 백엔드 개발자 되기_8

mport org.springframework.ui.Model;

모델 객체는 뷰, 즉 HTML로 값을 넘겨주는 객체임

따로 생성할 필요없이 인자로 선언하기만 하면 스프링이 알아서 만들어줌