<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允许注解生效即可
转载请注明原文地址:https://ipadbbs.8miu.com/read-53541.html