Skip to main content

AJAX

Learn AJAX (Spring MVC + AJAX, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes AJAX means the browser sends a request in the background with JavaScript and updates part of the page without a full reload. Spring side : a @RestController or a @ResponseBody method returns JSON instead of a view name. Browser side : call the endpoint with fetch() (or XMLHttpRequest) and update the DOM with the result.

More lessons in Spring MVC + AJAX