You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
导入包后运行登录报错:
org.springframework.security.authentication.InternalAuthenticationServiceException: Cannot find cache named 'user' for Builder
请问是前端要加统一拦截么
@OverRide @Cacheable(key = "'username:' + #p0")
public UserDto findByName(String userName) {
User user = userRepository.findByUsername(userName);
if (user == null) {
throw new EntityNotFoundException(User.class, "name", userName);
} else {
return userMapper.toDto(user);
}
}
The text was updated successfully, but these errors were encountered:
导入包后运行登录报错:
org.springframework.security.authentication.InternalAuthenticationServiceException: Cannot find cache named 'user' for Builder
请问是前端要加统一拦截么
@OverRide
@Cacheable(key = "'username:' + #p0")
public UserDto findByName(String userName) {
User user = userRepository.findByUsername(userName);
if (user == null) {
throw new EntityNotFoundException(User.class, "name", userName);
} else {
return userMapper.toDto(user);
}
}
The text was updated successfully, but these errors were encountered: