敏捷工具
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.

12 lines
356 B

2 years ago
  1. package com.whn.hellospring.repository;
  2. import org.springframework.data.repository.NoRepositoryBean;
  3. import org.springframework.data.repository.PagingAndSortingRepository;
  4. import java.util.List;
  5. @NoRepositoryBean
  6. public interface BaseRepository<T,Long> extends PagingAndSortingRepository<T,Long> {
  7. List<T> findTop3ByOrderByUpdateTimeDescIdAsc();
  8. }