package bg.car_wash.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {

	@GetMapping("/")
	public String getHomePage() {
		return "home";
	}

}

package bg.car_wash.controllers;

import bg.car_wash.configurations.SiteTitleNames;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {

	@GetMapping("/")
	public String getHomePage(Model model) {
		model.addAttribute("pageTitle", SiteTitleNames.HOME_PAGE);
		return "home";
	}

}

update homo controller