Just a sidenote. I got this error when I picked the wrong Mapper class. I was building a Mybatis mapper, and I imported Mapstruct's one.
Mapper