/*
   Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   SPDX-License-Identifier: Apache-2.0
*/

package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class MongoWebApp {

    public static void main(String[] args) throws Throwable {
        SpringApplication.run(MongoWebApp.class, args);
    }
}

Create MongoWebApp.java