Google App Engine上使用Java 8的Spring框架不';t启动

Google App Engine上使用Java 8的Spring框架不';t启动,spring,google-app-engine,spring-boot,java-8,Spring,Google App Engine,Spring Boot,Java 8,我有一个使用Java7在GoogleAppEngine(GAE)上运行的web应用程序 我想升级到Java 8,因为Java 7已被弃用 将Spring框架版本更新为(5.0.6),将安全性更新为(5.0.5) 我在启动时遇到此异常: [INFO] 2018-06-11 09:52:34,592 main INFO [ContextLoaderListener] Java Version : 1.8.0_73-b02 [INFO] 2018-06-11 09:52:34,

我有一个使用Java7在GoogleAppEngine(GAE)上运行的web应用程序

我想升级到Java 8,因为Java 7已被弃用

将Spring框架版本更新为(5.0.6),将安全性更新为(5.0.5)

我在启动时遇到此异常:

[INFO] 2018-06-11 09:52:34,592            main  INFO [ContextLoaderListener] Java Version : 1.8.0_73-b02
[INFO] 2018-06-11 09:52:34,698            main  INFO [ContextLoaderListener] starting TrackAndTraceServer::version:4.0.4-SNAPSHOT-unavailable
[INFO] Jun 11, 2018 9:52:34 AM com.google.appengine.tools.development.ApiProxyLocalImpl log
[INFO] INFO: javax.servlet.ServletContext log: Initializing Spring root WebApplicationContext
[INFO] 2018-06-11 09:52:34,760            main  INFO [ContextLoader] Root WebApplicationContext: initialization started
[INFO] 2018-06-11 09:52:34,921            main  INFO [CustomXmlWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Mon Jun 11 09:52:34 UTC 2018]; root of context hierarchy
[INFO] 2018-06-11 09:52:35,077            main  INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml]
[INFO] 2018-06-11 09:52:35,187            main  INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [dao-beans.xml]
[INFO] 2018-06-11 09:52:35,354            main  INFO [SpringSecurityCoreVersion] You are running with Spring Security Core 5.0.5.RELEASE
[INFO] 2018-06-11 09:52:35,354            main  INFO [SecurityNamespaceHandler] Spring Security 'config' module version is 5.0.5.RELEASE
[INFO] 2018-06-11 09:52:35,526            main  INFO [HttpSecurityBeanDefinitionParser] Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.csrf.CsrfFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 700, <tagAuthenticationFilter>, order = 1000, <apiKeyAuthenticationFilter>, order = 1001, <authenticationFilter>, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.security.config.http.HttpConfigurationBuilder$SecurityContextHolderAwareRequestFilterBeanFactory#0; factoryMethodName=getBean; initMethodName=null; destroyMethodName=null, order = 1800, <rememberMeFilter>, order = 2000, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2300, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2400]
[INFO] 2018-06-11 09:52:35,921            main ERROR [ContextLoader] Context initialization failed
[INFO] java.lang.NoClassDefFoundError: java.util.stream.Stream is a restricted class. Please see the Google  App Engine developer's guide for more details.
[INFO]  at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:50)
[INFO]  at org.springframework.beans.factory.config.ConstructorArgumentValues.addArgumentValues(ConstructorArgumentValues.java:79)
[INFO]  at org.springframework.beans.factory.config.ConstructorArgumentValues.<init>(ConstructorArgumentValues.java:62)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanDefinition.<init>(AbstractBeanDefinition.java:245)
[INFO]  at org.springframework.beans.factory.support.RootBeanDefinition.<init>(RootBeanDefinition.java:229)
[INFO]  at org.springframework.beans.factory.support.RootBeanDefinition.cloneBeanDefinition(RootBeanDefinition.java:404)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1253)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1224)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1210)
[INFO]  at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:414)
[INFO]  at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:390)
[INFO]  at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:84)
[INFO]  at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
[INFO]  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
[INFO]  at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
[INFO]  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
[INFO]2018-06-11 09:52:34592主信息[ContextLoaderListener]Java版本:1.8.0_73-b02
[信息]2018-06-11 09:52:34698主要信息[ContextLoaderListener]正在启动Track和TraceServer::版本:4.0.4-SNAPSHOT-unavailable
[信息]2018年6月11日上午9:52:34 com.google.appengine.tools.development.ApiProxyLocalImpl log
[INFO]INFO:javax.servlet.ServletContext日志:初始化Spring根WebApplicationContext
[信息]2018-06-11 09:52:34760主信息[上下文加载器]根Web应用程序上下文:初始化已开始
[INFO]2018-06-11 09:52:34921主信息[CustomXmlWebApplicationContext]刷新根WebApplicationContext:启动日期[Mon Jun 11 09:52:34 UTC 2018];上下文层次结构的根
[信息]2018-06-11 09:52:35077主要信息[XmlBeanDefinitionReader]从ServletContext资源[/WEB-INF/beans.XML]加载XMLBean定义
[INFO]2018-06-11 09:52:35187主要信息[XmlBeanDefinitionReader]从类路径资源[daobeans.XML]加载XML bean定义
[信息]2018-06-11 09:52:35354主要信息[SpringSecurityCoreVersion]您使用的是Spring Security Core 5.0.5.0版本
[信息]2018-06-11 09:52:35354主要信息[SecurityNamespaceHandler]Spring安全“配置”模块版本为5.0.5.0
[信息]2018-06-11 09:52:35526主要信息[HttpSecurityBeanDefinitionParser]检查排序的筛选器链:[根bean:class[org.springframework.security.web.context.SecurityContextPersistenceFilter];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null,order=200,根bean:class[org.springframework.security.web.header.HeaderWriterFilter];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null,order=500,根bean:class[org.springframework.security.web.csrf.CsrfFilter];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null,order=700,order=1000,order=1001,order=1200,根bean:class[org.springframework.security.web.SavedRequestCacheAwareFilter];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null,order=1700,根bean:class[null];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=org.springframework.security.config.http.HttpConfigurationBuilder$SecurityContextHolderAwareRequestFilterBeanFactory#0;factoryMethodName=getBean;initMethodName=null;destroyMethodName=null,order=1800,order=2000,根bean:class[org.springframework.security.web.session.SessionManagementFilter];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destromethodname=null,order=2200,根bean:class[org.springframework.security.web.access.ExceptionTranslationFilter];作用域=;抽象=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null,order=2300,order=2400]
[信息]2018-06-11 09:52:35921主错误[ContextLoader]上下文初始化失败
[信息]java.lang.NoClassDefFoundError:java.util.stream.stream是一个受限类。有关更多详细信息,请参阅《谷歌应用程序引擎开发人员指南》。
[信息]位于com.google.appengine.tools.development.agent.runtime.runtime.reject(runtime.java:50)
[信息]位于org.springframework.beans.factory.config.ConstructorArgumentValues.addArgumentValues(ConstructorArgumentValues.java:79)
[信息]位于org.springframework.beans.factory.config.ConstructorArgumentValues。(ConstructorArgumentValues.java:62)
[信息]位于org.springframework.beans.factory.support.AbstractBeanDefinition.(AbstractBeanDefinition.java:245)
[信息]位于org.springframework.beans.factory.support.RootBeanDefinition.(RootBeanDefinition.java:229)
[信息]位于org.springframework.beans.factory.support.RootBeanDefinition.cloneBeanDefinition(RootBeanDefinition.java:404)
[信息]位于org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1253)
[信息]位于org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1224)
[信息]位于org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1210)
[信息]位于org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:414)
[信息]位于org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:390)
[信息]位于org.springframework.context.support.postprocessorregistrationlegate.invokeBeanFactoryPostProcessors(postprocessorregistrationlegate.java:84)
[信息]位于org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
[信息]位于org.springframework.context.support.AbstractApplica