IDEA: How to Add @Data plug-in

In the code, there is @data annotation in the bean class. Normally, a series of template methods such as getter/setter/tostring() will be automatically added to the compiled class. However, in practice, after the subclass inherits the bean class, the getter/setter method cannot be used by default.

Why? This is because plug-in support needs to be added to IDEA.

Settings—> Plugins, click marketplace, input Lombok, install and restart idea.

</ div>

Read More: