Once the prerequisites are installed, run the command.
docker-compose up -d
CREATE TABLE public.student
(
id integer NOT NULL,
address character varying(255),
email character varying(255),
name character varying(255),
CONSTRAINT student_pkey PRIMARY KEY (id)
);
Go to the folder student-cdc-relay
, run the command
mvn spring-boot:run
INSERT INTO STUDENT(ID, NAME, ADDRESS, EMAIL) VALUES('1','Jack','Dallas, TX','jack@gmail.com');
UPDATE STUDENT SET EMAIL='jill@gmail.com', NAME='Jill' WHERE ID = 1;
DELETE FROM STUDENT WHERE ID = 1;
curl -X GET http://localhost:9200/student/student/1?pretty=true