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 11package info .xiaomo .core .base ;
22
33import 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
1011public interface BaseDao <T > extends JpaRepository <T , Long > {
1112
1213 T findById (String name );
Original file line number Diff line number Diff line change 11package info .xiaomo .core .base ;
22
33import org .springframework .data .domain .Page ;
4+ import org .springframework .stereotype .Service ;
45
56import java .util .List ;
67
78/**
89 * @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
910 * @version : 2017/1/11 16:42
1011 */
12+ @ Service
1113public interface BaseService <T > {
1214
1315 T findById (Long id );
You can’t perform that action at this time.
0 commit comments