@Controlleris used to mark classes as Spring MVC Controller.@RestControlleris a convenience annotation that does nothing more than adding the@Controllerand@ResponseBodyannotations (see: Javadoc)
So the following two controller definitions should do the same
@Controller
@ResponseBody
public class MyController { }
@RestController
public class MyRestController { }