You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
474 B

package com.community.pocket.repository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.mongodb.core.MongoTemplate;
public abstract class BaseDao<T> {
@Autowired
protected MongoTemplate mongoTemplate;
@Value("${page-size}")
protected Integer pageSize;
//增加
public abstract T save(T t);
public abstract Class<T> entityClass();
}