QueryDsl classes are not generated in IntelliJ
You can fix the problem by: Open target folder --> Right click to generated-sources folder -> Mark Directory As -> Generated sources root.
After correctly marking the generated sources folder it worked without any problems for me. If IntelliJ doesn't instantly recognize the marked folder and the error still persists, mvn clean install
usually helps.