树脂上的java版本错误

dsf9zpds  于 2021-07-05  发布在  Java
关注(0)|答案(0)|浏览(176)

在我们的项目中,我们使用树脂作为生产服务器。在我的本地机器上,我使用的是jetty,但在不同的服务器上应用程序的行为存在一些差异。这就是为什么我要尝试将配置添加到intellij idea中,intellij idea将使用resin作为应用服务器。
当我尝试运行它时,出现以下错误:

  1. [20-09-03 16:35:39.134] {resin-port-80-49} warning: [options] bootstrap class path not set in conjunction with -source 1.5
  2. warning: [options] source value 1.5 is obsolete and will be removed in a future release
  3. warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
  4. /include/header.jsp:70: error: diamond operator is not supported in -source 1.5
  5. List<String> jsEncodedItems = new ArrayList<>(list.size());
  6. ^
  7. (use -source 7 or higher to enable diamond operator)
  8. 1 error
  9. 3 warnings

我已经在“project structure”和maven的pom.xml中检查了java版本,但我在所有地方都找到了1.8。同时,使用jetty我没有遇到这样的错误,一切都按预期进行。
也许你知道怎么解决这个问题吗?
你可以在这个屏幕截图上找到我的配置:

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题