1.lombok注解@Data使用在继承类上时出现警告
2.解决方法:
2.1在pom内加入 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
2.2在src/mian/java下面加入配置类:lombok.config
config.stopBubbling=true
lombok.equalsAndHashCode.callSuper=call