Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /