今天错误不断,连续碰到好几次这样的错误,郁闷。“syntax error,annotation are only available if source level is 1.5”解决的方案是:windows-->preferences-->java-->compiler把里面的1.6改成1.5,确定之后,在重新改回1.6,就可以了,我至今还莫名其妙,这是什么个逻辑法,反正就这样了。
转载于:https://my.oschina.net/liujinofhome/blog/30347