Thymeleaf template is filled at startup by document entities stored in mongodb database configured by application properties.
Following dependencies are used:
- Web
- MongoDB
- Lombok
- Thymeleaf
- Activator http://localhost:8080/actuator
- HAL Browser http://localhost:8080/browser/index.html#/actuator
- Devtools
- Swagger API http://localhost:8080/v2/api-docs
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