选择你的项目右键,选properties,然后如图修改保存 :
Syntax error, annotations are only available if source level is 1.5 or greater 原 钟
原文:https://www.cnblogs.com/WYF166/p/12102665.html