IDEA maven repo 导入 lombok注解不生效

    技术2024-12-10  12

    <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.8</version> <scope>provided</scope> </dependency>

    pom.xml导入lombok后,还需要再settings中下载lombok插件 restart ide后右下角弹出窗口enable允许注解生效即可

    Processed: 0.021, SQL: 9