[英]When I am going to make war giving error like this (use -source 5 or higher to enable annotations)
When I am going to make war giving error like this (use -source 5
or higher to enable annotations); 当我
-source 5
这样的错误(使用-source 5
或更高版本来启用注释)时;
see the image: 看到图片:
.
。
Are you using maven to build your war file? 您是否正在使用Maven构建战争文件? If this is the case you should check your projects .pom file to ensure you have set your java version correctly, within your build plugin.
如果是这种情况,则应检查项目.pom文件,以确保在构建插件中正确设置了Java版本。
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.