create a restapi program using spring boot where i store the data from this java program to mysql database assuming my database name is myDb password is root username is root
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

public class MainGET {

    public static void main(String[] args) {
        try {

            URL url = new URL("https://price-api.datayuge.com/api/v1/compare/detail?api_key=BNLsaRPO0bLGsW2E7gRZO9eP0VFVoOeZuv3&id=ZToyMzQzMw");

            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setRequestMethod("GET");
            conn.connect();

            //Getting the response code
            int responsecode = conn.getResponseCode();

            if (responsecode != 200) {
                throw new RuntimeException("HttpResponseCode: " + responsecode);
            } else {

                String inline = "";
                Scanner scanner = new Scanner(url.openStream());

                //Write all the JSON data into a string using a scanner
                while (scanner.hasNext()) {
                    inline += scanner.nextLine();
                }

                //Close the scanner
                scanner.close();

                //Using the JSON simple library parse the string into a json object
                JSONParser parse = new JSONParser();
                JSONObject data_obj = (JSONObject) parse.parse(inline);

                //Get the required object from the above created object
                JSONObject obj = (JSONObject) data_obj.get("data");
                String productID = (String) obj.get("product_id");
                System.out.println(productID);
                String productName = (String) obj.get("product_name");      
                System.out.println(productName);
                String productDesc = (String) obj.get("product_model");      
                System.out.println(productDesc);
                String productCat = (String) obj.get("product_category");      
                System.out.println(productCat);
                String productBrand = (String) obj.get("product_brand");      
                System.out.println(productBrand);
                String productPrice = (String) obj.get("product_mrp");      
                System.out.println(productPrice);
                String productRating = (String) obj.get("product_ratings");      
                System.out.println(productRating);
                
                

                //Get the required data using its key
//                System.out.println(obj.get("TotalRecovered"));
//
                JSONArray arr = (JSONArray) obj.get("stores");
//
                //for (int i = 0; i < arr.size(); i++) {

                    JSONObject new_obj = (JSONObject) arr.get(0);
                    JSONObject arr1 = (JSONObject) new_obj.get("amazon");
                System.out.println(arr1);
//
//                }
                //System.out.println(arr);
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}