Project Lombok

背景

用法

maven

1
2
3
4
5
6
7
8
  <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.10</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

idea 插件参见 https://projectlombok.org/setup/intellij

The Jetbrains IntelliJ IDEA editor is compatible with lombok.

Add the Lombok IntelliJ plugin to add lombok support for IntelliJ:

  1. Go to File > Settings > Plugins
  2. Click on Browse repositories...
  3. Search for Lombok Plugin
  4. Click on Install plugin
  5. Restart IntelliJ IDEA

You can also check out Setting up Lombok with Eclipse and IntelliJ, a blog article on baeldung.

用法

  1. experimental
  2. api

引用

  1. projectlombok

来世做李白

social