我目前正在现有的应用程序中使用云端点v1,但我希望将其更新为v2 for App Engine in Java。我已经回顾了migration guide,但这只提供了迁移Maven项目的步骤。我没有使用Maven,但我使用Java App Engine SDK和Google Eclipse插件来开发、测试和部署我的端点。由于与App Engine SDK中的现有依赖项冲突,我在运行云端点框架的v2时遇到了问题。如何覆盖App Engine SDK中的v1依赖项,以便迁移到v2?这是可能的吗,或者我应该将我的项目转换为Maven项目?
发布于 2017-02-16 06:14:11
我认为GPE已被弃用。但是,您应该能够右键单击您的App Engine项目,选择Build Path > Configure Build Path
,并在Libraries选项卡下添加endpoints-framework
JAR。请确保转到App Engine SDK上方的Order and Export and move the endpoints-framework,否则您可能会遇到问题。
发布于 2017-03-13 20:41:06
为了覆盖App Engine SDK for Java中的include appengine-endpoints.jar,我在appengine-web.xml中添加了class-loader-config。
<classloader-config> <priority-specifier filename="endpoints-framework-2.0.3.jar/> </class-loader-config>
我还禁用了Eclipse中的Google Cloud Endpoint Builder。Properties>Builders并取消选中Google App Engine Cloud Endpoints。
https://stackoverflow.com/questions/42234788
复制相似问题