This is a demo code using Spring JDBC to connect MySQL database and execute CRUD operations.
CREATE TABLE `test`.`employees` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`age` int NOT NULL,
PRIMARY KEY (`id`)
);
mysql> desc employees;
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int | NO | PRI | NULL | auto_increment |
| name | varchar(30) | NO | | NULL | |
| age | int | NO | | NULL | |
+-------+-------------+------+-----+---------+----------------+
http://localhost:8080/spring/jdbc/swagger-ui/#/