【发布时间】:2015-04-09 02:10:58
【问题描述】:
使用 Spring MVC 开发 Google App Engine 应用程序,在 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.
如果我将我的应用上传到 Google App Engine 的云服务器,则不会出现此错误。
如何解决?
【问题讨论】:
标签: google-app-engine spring-mvc