[go: nahoru, domu]

Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Joezeo committed Jul 20, 2022
1 parent 9ae3f2e commit 4d8e0dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ public class AddArticleAction extends AbstractHttpAction<String> implements IVes

**2. Reactive mongodb repository**
Just create a document class implement `com.toocol.common.database.IDocument` and add annotation `org.springframework.data.mongodb.core.mapping.Document`, then create a interface extends `com.toocol.common.database.mongo.AsyncMongoRepo`:
```yml
spring:
data:
mongodb:
host: localhost
port: 27017
database: guitarcs-server
```
```java
public interface ArticleAddressRepo extends AsyncMongoRepo<ObjectId, ArticleAddress> {

Expand Down

0 comments on commit 4d8e0dc

Please sign in to comment.