This repository was archived by the owner on Dec 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
src/main/java/com/springboot/aop/service/impl Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .springboot .aop .service .impl ;
2+
3+ import com .springboot .aop .domain .Board ;
4+ import com .springboot .aop .repository .BoardRepository ;
5+ import com .springboot .aop .service .BoardService ;
6+ import org .springframework .beans .factory .annotation .Autowired ;
7+ import org .springframework .stereotype .Service ;
8+
9+ import java .util .List ;
10+
11+ @ Service
12+ public class BoardServiceImpl implements BoardService {
13+
14+ @ Autowired
15+ private BoardRepository boardRepository ;
16+
17+ public List <Board > getBoards () {
18+ List <Board > boards = boardRepository .findAll ();
19+ return boards ;
20+ }
21+
22+ }
Original file line number Diff line number Diff line change 1+ package com .springboot .aop .service .impl ;
2+
3+ import com .springboot .aop .domain .User ;
4+ import com .springboot .aop .repository .UserRepository ;
5+ import com .springboot .aop .service .UserService ;
6+ import org .springframework .beans .factory .annotation .Autowired ;
7+ import org .springframework .stereotype .Service ;
8+
9+ import java .util .List ;
10+
11+ @ Service
12+ public class UserServiceImpl implements UserService {
13+
14+ @ Autowired
15+ private UserRepository userRepository ;
16+
17+ public List <User > getUsers () {
18+ List <User > users = userRepository .findAll ();
19+ return users ;
20+ }
21+
22+ }
You can’t perform that action at this time.
0 commit comments