springboot-crud-demo/src/main/java/com/ensat/controllers/IndexController.java
<filename>springboot-crud-demo/src/main/java/com/ensat/controllers/IndexController.javapackage com.ensat.controllers;

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

/**
 * Homepage controller.
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    String index() {
        return "index";
    }

}
