Follow the instructions at http://docs.mongodb.org/manual/installation/ to install MongoDB onto your specific operating system.
To get started with connecting to MongoDB, include the dependency for the Spring Boot MongoDB starter in pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>