I encountered the same issue while using Spring Boot 3.4.3. I was able to solve it by following these steps in IntelliJ:
Go to Files -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processor -> appName -> Select Obtain processor from project classpath
option.