Changeset 3fe36de in Git for src/main/java/com/wediscussmovies/project/service
- Timestamp:
- 02/09/22 03:14:08 (3 years ago)
- Branches:
- main
- Children:
- 967b414
- Parents:
- c02189f
- Location:
- src/main/java/com/wediscussmovies/project/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/service/UserService.java
rc02189f r3fe36de 10 10 User findByUsername(String username); 11 11 User register(String email, String username, String password, String confirmPassword, String name, String surname); 12 13 User findById(Integer id); 12 14 } -
src/main/java/com/wediscussmovies/project/service/impl/UserServiceImpl.java
rc02189f r3fe36de 48 48 49 49 @Override 50 public User findById(Integer id) { 51 return userRepository.findById(id).orElseThrow(() -> new UserNotExistException(id.toString())); 52 } 53 54 @Override 50 55 public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { 51 56 return this.findByUsername(username);
Note:
See TracChangeset
for help on using the changeset viewer.