https://spring.io/guides/tutorials/rest/ To test Run /srv/main/java/payroll/PayrollApplication Open /frontend-demo/index.html Press the button in index.html It should return you 2 names