当前位置: 代码迷 >> 综合 >> Could not load [java.util.stream.Collectors]. The following stack trace is thrown for debugging purp
  详细解决方案

Could not load [java.util.stream.Collectors]. The following stack trace is thrown for debugging purp

热度:29   发布时间:2023-12-17 00:02:39.0

今天特别奇怪,一直报错.,报错如下:

java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [java.util.stream.Collectors]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1352)at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1340)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1205)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)

说是找不到java.util.stream.Collectors类,这个类是1.8的类,应该是java设置项目版本没有改为1.8的,然后重启项目解决;
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  相关解决方案