Lombok: RequiredArgsConstructor not working

后端 未结 5 1147
逝去的感伤
逝去的感伤 2021-01-01 12:49

It seems that @RequiredArgsConstructor not working in the code below. Why is it?

import java.io.Serializable;

import lombok.Data;
import lombok         


        
5条回答
  •  鱼传尺愫
    2021-01-01 13:37

    Did you installed Lombok plugin in intellij ?

    If not then

    File -> Settings -> Plusings: Search for Lombok (CodeStream) version.

    Restart the IDE and it should be fixed.

    Double Check:

    • You have Lombok library installed using Maven or Gradle.
    • Enabled Annotation Processors from intellij IDE from File -> Settings: Search for Annotation Processors

提交回复
热议问题