/mongomvc

Spring boot mvc application using thymeleaf template and mongoDB created by docker-compose.

Primary LanguageJava

Spring Boot MVC Application

Build Status

Thymeleaf template is filled at startup by document entities stored in mongodb database configured by application properties.

Following dependencies are used:

Application

  • Web
  • MongoDB
  • Lombok
  • Thymeleaf

Metrics

Development

  • Devtools

Swagger

Use Docker Compose for creating Spring Boot Application with MongoDB

In parent folder make creates two docker container named

  • mongomvc (Spring Boot MVC Application)

  • mongodb (MongoDB)

and run tests afterwards.

Attach to mongodb container:

$ docker exec -it mongodb bash 

and execute queries:

$ mongo # Starts mongo client
$ use custom # Change database
$ db.persons.find() # Execute query