thrift 版本不一致导致 @Override 报错

编译.thrift文件时,是在Centos环境中使用了最新版本 thrift 0.11.0;
使用时,在pom.xml文件中使用的版本为0.10.0(因为最新版本还没有长传到maven repository中),结果导致大量的@Override报错,当然注释掉能编译通过,但是根本原因还是由于版本不一致。

使用 0.10.0 thrift 重新编译后,正常!

猜你喜欢

转载自blog.csdn.net/antony1776/article/details/78920888