在 idea 中,File -> Settings -> Build.Execution,Deployment -> Annotation Processors 中的 Enable annotation processing 打勾就行 相关文章: 2021-09-01 2021-11-17 2021-07-07 2022-12-23 2023-01-12 2021-07-21