I'm working with this tutorial which uses lambda expressions.
But IntelliJ says always: cannot resolve method(<lambda expression>)
.
What do I have to check?
this.accountRepository.findByUsername(userId).orElseThrow(() -> new UserNotFoundException(userId));
It looks like your IntelliJ or your project is not setup to use Java 8.
It should look something like this: