@Setter @Getter is invalid when IDEA uses lombok

created at 12-16-2021 views: 6

Problem Description

The program can run normally
The editor interface prompts that the class does not have get and set methods

code

The package has been successfully imported, and @Setter @Getter has been added to the SearchLogDto class

decorators

reason

Lombok plug-in needs to be introduced when using lombok in IDEA
Install Lombok plugin
Ctrl+Shift+A Enter Plugins to open the plug-in management page, enter Lombok

Lombok plug

verification

Install the plug-in and restart the editor and find that the problem has been solved

problem solved

created at:12-16-2021
edited at: 12-16-2021: