Cov txheej txheem:

Lombok IntelliJ plugin yog dab tsi?
Lombok IntelliJ plugin yog dab tsi?

Video: Lombok IntelliJ plugin yog dab tsi?

Video: Lombok IntelliJ plugin yog dab tsi?
Video: How to enable Java Lombok in IntelliJ IDEA? 2024, Kaum ib hlis
Anonim

IntelliJ Lombok plugin

Tshem tawm qhov mob tawm ntawm kev tshuaj xyuas cov lej thiab txhim kho cov lej zoo. Sim nws dawb! Nta. @Getter thiab @Setter.

Ntawm no, IntelliJ koom nrog Lombok li cas?

Ntxiv Lombok IntelliJ plugin ntxiv lombok txhawb rau IntelliJ:

  1. Mus rau Cov Ntaub Ntawv> Chaw> Plugins.
  2. Nyem rau ntawm Browse repositories
  3. Nrhiav Lombok Plugin.
  4. Nyem rau nruab plugin.
  5. Pib dua IntelliJ IDEA.

Qhov thib ob, puas Lombok ua haujlwm nrog Java 11? 2 Teb. Txhim kho Lombok raws li kev vam khom thiab raws li IDE plugin (IntelliJ, NetBeans, dab noj hnub) thiab pab txhawb kev sau ntawv hauv IDEs chaw. Tseeb version ntawm Lombok thiab/lossis IntelliJ plugin txhawb nqa zoo kawg nkaus Java 11 . PLATFORM: Ntau yam kev txhim kho rau lombok ua JDK10/ 11 kev txhawb nqa.

Ntxiv mus, qhov kev siv ntawm Lombok plugin yog dab tsi?

Qhov project Lombok yog ib lub tsev qiv ntawv java uas cia li ntsaws rau hauv koj tus editor thiab tsim cov cuab yeej, spicing li koj java. Tsis txhob sau lwm txoj kev getter lossis sib npaug dua, nrog rau ib qho lus piav qhia koj cov chav kawm muaj tus tsim ua kom pom tseeb, Automate koj cov ntaub ntawv nkag mus, thiab ntau ntxiv.

Koj teeb tsa Lombok li cas?

Ntxiv Lombok Plugin hauv IDE (Eclipse)

  1. Copy lom. jar rau hauv dab noj hnub. app/Contents/MacOS directory.
  2. Ntxiv -javaagent:lombok. jar mus rau qhov kawg ntawm dab noj hnub. app/Contents/Eclipse/ dab noj hnub. ib file.
  3. Pib dua dab noj hnub thiab pab kom "Annotation Processing" nyob rau hauv qhov project zog raws li qhia nyob rau hauv daim duab hauv qab no.

Pom zoo: