Dev App Server不支持App Engine灵活环境应用程序 [英] Dev App Server does not support App Engine Flexible Environment applications

查看:75
本文介绍了Dev App Server不支持App Engine灵活环境应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Spring Boot App部署到App Engine并收到此错误:

I'm trying to deploy spring boot app to app engine and receiving this error:

org.apache.maven.plugin.MojoExecutionException: Dev App Server does not support App Engine Flexible Environment applications.

推荐答案

我遇到了类似的问题,但是我发现问题与应用程序的打包方式有关.

似乎必须是 WAR .
例如,您可以将以下行放在应用程序的 pom.xml 中:

I had a similar issue, but I found that the problem was related to the way the app was packed.

It seems that it is required to be a WAR.
For example, you can put the following line in the pom.xml of your app:

<packaging>war</packaging>

但是首先,请确保您检查@Ajitesh关于 appengine-web.xml 文件的内容.

But first, make sure you check what @Ajitesh said about the appengine-web.xml file.

有关更多详细信息,请访问以下链接: issue 和<一个href ="https://github.com/GoogleCloudPlatform/getting-started-java/pull/231" rel ="nofollow noreferrer">可能的解决方案.

For more details, follow these links: issue and possible solution.

这篇关于Dev App Server不支持App Engine灵活环境应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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