[Solved] IDEA java Cannot resolve method ‘getName‘ in ***

Use lombok @Data annotation in class, IDEA smart prompt does not support it, install lombok plugin to solve it.

File-> Settings-> Plugins


Read More: