Lombok with Spring Tool Suite 4

后端 未结 13 2117
长发绾君心
长发绾君心 2020-12-28 09:01

I\'ve recently installed the new Spring Tool Suite 4 in macOS High Sierra but when I tried to run Lombok\'s installation it wouldn\'t find my STS installation,

I fol

13条回答
  •  没有蜡笔的小新
    2020-12-28 09:32

    I'll show you how to completely install lombok into Spring Tool Suite 4 or latest version. First go to your project pom.xml file and add this dependency on dependencies section.

    
        org.projectlombok
        lombok
        provided
    
    

    Go to your project root folder on your IDE and click the right button on it. Select like below:

    And make sure, checked Force Update of Snapshots/Releases. Click Ok to download and update dependencies.

    After finishing all task. Go to project Maven Dependencies and find lombok.jar file (>Maven Dependencies >lombok.jar). Right click on lombok jar. Go to Run As Java Application.

    It will open lombok installer window and click ok. Then click Specify Location button.

    Select the location where your STS bundle was installed. If it is selected properly then it will checked STS.exe, like below:

    Then click install/update button. Finally lombok will be installed successfully.

    Hopefully it helps you. Thanks.

提交回复
热议问题