在我们的项目中,我们使用树脂作为生产服务器。在我的本地机器上,我使用的是jetty,但在不同的服务器上应用程序的行为存在一些差异。这就是为什么我要尝试将配置添加到intellij idea中,intellij idea将使用resin作为应用服务器。
当我尝试运行它时,出现以下错误:
[20-09-03 16:35:39.134] {resin-port-80-49} warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/include/header.jsp:70: error: diamond operator is not supported in -source 1.5
List<String> jsEncodedItems = new ArrayList<>(list.size());
^
(use -source 7 or higher to enable diamond operator)
1 error
3 warnings
我已经在“project structure”和maven的pom.xml中检查了java版本,但我在所有地方都找到了1.8。同时,使用jetty我没有遇到这样的错误,一切都按预期进行。
也许你知道怎么解决这个问题吗?
你可以在这个屏幕截图上找到我的配置:
暂无答案!
目前还没有任何答案,快来回答吧!