Clase Main
En este ejemplo sencillo crearemos un registro de planetas que sera almacenado en MongoDB
public class Start {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try {
            PlanetasController planetasController = new PlanetasController();
            Planetas planetas = new Planetas("tr", "Tierra", new Date());
            planetasController.guardar(planetas);
        } catch (Exception e) {
        }
    }
}Last updated
Was this helpful?