We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b979883 commit da68139Copy full SHA for da68139
spring-boot-mongodb/src/main/java/io/ymq/example/mongodb/DemoDao.java
@@ -1,7 +1,7 @@
1
package io.ymq.example.mongodb;
2
3
/**
4
- * 描述: Demo DAO
+ * 描述: 提供增删改查 MongoDB 接口
5
*
6
* @author yanpenglei
7
* @create 2018-02-03 16:56
@@ -15,5 +15,4 @@ public interface DemoDao {
15
void updateDemo(DemoEntity demoEntity);
16
17
DemoEntity findDemoById(Long id);
18
-
19
}
spring-boot-mongodb/src/main/java/io/ymq/example/mongodb/DemoEntity.java
@@ -1,6 +1,7 @@
import org.springframework.data.annotation.Id;
+import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
0 commit comments