由于FormatStyle受限制的类,如何处理App Engine Devserver异常? [英] How to deal with App Engine Devserver exception due to FormatStyle restricted class?

查看:192
本文介绍了由于FormatStyle受限制的类,如何处理App Engine Devserver异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  org.springframework.beans.factory.BeanCreationException:创建名为
的bean时出错org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0':
bean初始化失败[.. 。]


嵌套的异常是java.lang.NoClassDefFoundError:
java.time.format.FormatStyle是一个受限制的类。有关更多详细信息,请参阅
Google App Engine开发人员指南。

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



如何解决它? 解决方案

问题。


Developing a Google App Engine app with Spring MVC, the following exception presents itself while running the dev server on OSX:

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.

This error does not present itself if I upload my app to Google App Engine's cloud server.

How to get around it?

解决方案

Downgrading Java 1.8 to 1.7 fixed the issue.

这篇关于由于FormatStyle受限制的类,如何处理App Engine Devserver异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆