I'm learning Spring and I was following along with this tutorial, but suddenly I started getting an error around this RowMapper assignment.
RowMapper<Person> rowMapper = (resultSet, i) -> {
UUID id = UUID.fromString(resultSet.getString("id"));
String name = resultSet.getString("name");
return new Person(id, name);
};
It's telling me that I'm using the wrong number of parameters in the lambda expression. My code is identical to the video. I've looked up several other similar questions on StackOverflow and they all line up with what I have. What am I doing wrong?
Hey there so i was also following the video and found this to be the problem
and the main code in the video will work with out a hitch.