今天特别奇怪,一直报错.,报错如下:
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的,然后重启项目解决;