Syntax error, annotations are only available if source level is 1.5

 

Syntax error,annotations are only available if source level is 5.0 
解决办法:Project->Properties->Java Compiler->Compiler Compliance Level选择5.0或者以上的jdk版本

posted @ 2014-12-27 00:45  棣棣棣棣  阅读(272)  评论(0)    收藏  举报