method one
Install the Lombok plugin under IDEA
Installation tutorial: http://www.cnblogs.com/wangchengb/p/9007627.html
Method Two
Introduce lombok dependencies under pom.xml
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> </dependency>