File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
core/src/main/java/info/xiaomo/core/base Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
package info .xiaomo .core .base ;
2
2
3
3
import org .springframework .data .jpa .repository .JpaRepository ;
4
+ import org .springframework .stereotype .Repository ;
4
5
5
6
/**
6
7
* @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
7
8
* @version : 2017/1/13 11:23
8
9
*/
9
-
10
+ @ Repository
10
11
public interface BaseDao <T > extends JpaRepository <T , Long > {
11
12
12
13
T findById (String name );
Original file line number Diff line number Diff line change 1
1
package info .xiaomo .core .base ;
2
2
3
3
import org .springframework .data .domain .Page ;
4
+ import org .springframework .stereotype .Service ;
4
5
5
6
import java .util .List ;
6
7
7
8
/**
8
9
* @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
9
10
* @version : 2017/1/11 16:42
10
11
*/
12
+ @ Service
11
13
public interface BaseService <T > {
12
14
13
15
T findById (Long id );
You can’t perform that action at this time.
0 commit comments