I start mysql locally by docker using
docker pull mysql
docker run -d -p 3306:3306 --name demo-mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest
Accessing database can be
mysql -h xxx.xxx.xxx.xxx -p3306 -uroot -p123456
you can test this program by clean and run
mvn clean install
mvn spring-boot:run
Then, application can be accessed by
localhost:8080
There is a submit button there can trigger
localhost:8080/save
![Screenshot 2024-03-05 at 23 38 42](https://private-user-images.githubusercontent.com/7453845/310183877-fb244bde-db5d-48bb-a756-b8ead07e8b7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4OTUzMzMsIm5iZiI6MTcyNDg5NTAzMywicGF0aCI6Ii83NDUzODQ1LzMxMDE4Mzg3Ny1mYjI0NGJkZS1kYjVkLTQ4YmItYTc1Ni1iOGVhZDA3ZThiN2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjlUMDEzMDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWRiYzFmNzEzYTIyYjFlYTJmMjQ5Y2U3NjAzMzc4MDhkOGI2NjRjZGZlODMwZDMzODg2ODE1NmUzM2YzNmVkZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Mpwj3iJwc_NPrcor-aIkakv0QFEN_wyvHX3z8UmvO7Y)
![Screenshot 2024-03-05 at 23 44 16](https://private-user-images.githubusercontent.com/7453845/310183950-053ccd16-a6dc-43b2-a50c-f1830899614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