由于FormatStyle限制类,如何处理App Engine Devserver异常?

Mat*_*toe 0 google-app-engine spring-mvc

使用Spring MVC开发Google App Engine应用程序时,在OSX上运行dev服务器时会出现以下异常:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0':
Initialization of bean failed [...]    


nested exception is java.lang.NoClassDefFoundError:
java.time.format.FormatStyle is a restricted class. Please see the
Google  App Engine developer's guide for more details.
Run Code Online (Sandbox Code Playgroud)

如果我将我的应用程序上传到Google App Engine的云服务器,则此错误不会出现.

怎么绕过它?

Mat*_*toe 6

将Java 1.8降级为1.7可以解决问题.