Skip to content

Commit 1abd3a6

Browse files
committed
源码包
1 parent b61d16f commit 1abd3a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/src/main/java/info/xiaomo/core/base/BaseDao.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package info.xiaomo.core.base;
22

33
import org.springframework.data.jpa.repository.JpaRepository;
4+
import org.springframework.stereotype.Repository;
45

56
/**
67
* @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
78
* @version : 2017/1/13 11:23
89
*/
9-
10+
@Repository
1011
public interface BaseDao<T> extends JpaRepository<T, Long> {
1112

1213
T findById(String name);

core/src/main/java/info/xiaomo/core/base/BaseService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package info.xiaomo.core.base;
22

33
import org.springframework.data.domain.Page;
4+
import org.springframework.stereotype.Service;
45

56
import java.util.List;
67

78
/**
89
* @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
910
* @version : 2017/1/11 16:42
1011
*/
12+
@Service
1113
public interface BaseService<T> {
1214

1315
T findById(Long id);

0 commit comments

Comments
 (0)