Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

TwoFishCN/mongodb-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongodb + Spring Data

Just Demo For Spring Data use MongoDb

Spring application config

server:
  port: 8080
spring:
  data:
    mongodb:
      uri: mongodb://localhost/test

Maven Pom.xml

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>

User Spring Data Repository

public interface CustomerRepository extends MongoRepository<Customer, Integer> {
}

About

spring data mongodb demo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages