commit
f6e52cd30d
@ -1,9 +1,11 @@ |
||||
package com.community.pocket.repository; |
||||
|
||||
|
||||
import com.community.pocket.domain.Manager; |
||||
import org.springframework.data.mongodb.repository.MongoRepository; |
||||
import org.springframework.data.rest.core.annotation.RepositoryRestResource; |
||||
|
||||
//管理员Restful接口
|
||||
@RepositoryRestResource |
||||
public interface ManagerRepo extends MongoRepository<Manager,String> { |
||||
} |
||||
|
@ -1,3 +0,0 @@ |
||||
#spring.data.mongodb.uri=mongodb://localhost:27017/demo |
||||
#spring.datasource |
||||
#spring.datasource.url=mongodb://localhost:27017/demo |
@ -1,3 +1,4 @@ |
||||
#数据库配置 |
||||
spring: |
||||
data: |
||||
mongodb: |
||||
|
Loading…
Reference in new issue