1. 컨트롤러 폴더 생성 2. 컨트롤러 파일 생성 package com.example.firstproject.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class FirstController { @GetMapping("/hi") public String hello(Model model){ model.addAttribute("username", "홍길동"); return "greetings"; // templates/greetings.m..