해결된 질문
작성
·
240
0
@Controller
public class HomeController {
@GetMapping("/")
public String home(){
return "home";
}
}
이렇게 썻을때는 home.html하고 연결이 되는데
@RestController
public class HomeController {
@GetMapping("/")
public String home(){
return "home";
}
}
RestController를 쓰면 home.html하고 연결이 안되더라고요
둘이 어떤차이인건가요???