设置 Setting - Compiler - Annotation Processors - Enable annotation processing 勾选,目的是启用注解处理,maven clean之后再编译,重启idea,问题解决