Installation as plugins plug Idea offline Lombok

Since the company does not allow use outside the network, with the idea 15 before installation again. But that it is not enough idea15 friendly upgrade idea2017.3.2 today, and the same needs to be installed. . . . Then write a tutorial. Other online installation tutorial is not universal, but also for the different versions of the idea, so. . .
Into the topic: official website according to your idea to select the correct version, you still can not use, the following are specific operational procedures.

Visit our Web site:

https://plugins.jetbrains.com/

Choose your idea type: My community is

image.png
image.png

Click plugin search Lombok:

image.png
image.png

Click version:

image.png
image.png

See your idea versions:

image.png
image.png

Select the corresponding version download:

image.png
image.png

Download the results shown in Figure:

image.png
image.png

Installation offline lombok: FIG.

image.png
image.png

Restart idea:

image.png
image.png

 

The introduction of pom dependency, this version does not enforce restrictions:

<dependency>
    <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.4</version> </dependency> 

Verify available:

import com.shaozhiqi.demo.dto.GeneralObjectResp; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * Created by shaozhiqi on 2019/8/21. */ @Slf4j @RestController @RequestMapping("/user") public class UserController { @GetMapping("/") public GeneralObjectResp hello() { log.info("accept request hello"); return GeneralObjectResp.success("ok"); } } 
import lombok.Data;
/**
 * Created by shaozhiqi on 2019/8/21.
 */

@Data
public class User { private String userName; } 

Verified by ok!

Guess you like

Origin www.cnblogs.com/luotuoke/p/11535172.html