pull/333/head
Shen Jiahuan 2019-10-12 19:10:59 +08:00
parent 0e1163ea66
commit 47c5db4d2c
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override
public User getByUsernameOfNonNull(String username) {
return getByUsername(username).orElseThrow(() -> new NotFoundException("The username dose not exist").setErrorData(username));
return getByUsername(username).orElseThrow(() -> new NotFoundException("The username does not exist").setErrorData(username));
}
@Override
@ -85,7 +85,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override
public User getByEmailOfNonNull(String email) {
return getByEmail(email).orElseThrow(() -> new NotFoundException("The email dose not exist").setErrorData(email));
return getByEmail(email).orElseThrow(() -> new NotFoundException("The email does not exist").setErrorData(email));
}
@Override