When button is clicked ajax sends json request to controller and controller response with database item in json format, and database item is displayed in drop-down list using select and option.
Note: Embedded database H2 is used. Project can be imported in Spring Tool Suite(/Eclipse) IDE.