Syntax error, annotations are only available if source level is 1.5 or greater , java compile

选择出错的项目,右键 ,打开属性界面——选中java compile——选中需要的版本-选中确定后出现对话框,选yes。

修改成1.8后的效果。

 

猜你喜欢

转载自blog.csdn.net/huawuque004/article/details/81350945