您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
19 行
438 B
19 行
438 B
package com.example.sbmongo.service;
|
|
|
|
import com.example.sbmongo.model.User;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import java.util.List;
|
|
|
|
public interface UserService {
|
|
User save(User user);
|
|
|
|
Page<User> findByUsername(String username, Pageable pageable1);
|
|
|
|
List<User> finAll();
|
|
|
|
User findByUsername(String nelson);
|
|
|
|
Page<User> findByPage(Pageable pageable);
|
|
}
|
|
|