welcomepage (1) 썸네일형 리스트형 [Spring] View 환경설정 1. Welcome Page : spring boot는 static/index.html을 올려두면 Welcome page 기능을 제공 2. 정적 페이지 : 파일을 웹서버가 웹브라우저에 그냥 던짐 Hello hello 3. Thymeleaf 템플릿 엔진 : 템플릿 엔진을 이용해 루프를 넣는 등 원하는 대로 바꿀 수 있음 스프링 부트는 FreeMarker, Groovy, Thymeleaf, Mustache 제공 안녕하세요. 손님 를 선언해줘야 thymeleaf 문법을 쓸 수 있음 th : thymeleaf 4. Controller @Controller 붙여줘야 함 @GetMapping("hello") : 웹 어플리케이션에서 /hello로 들어오면 해당 메소드 호출 package hello.hellosprin.. 이전 1 다음