Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用maven将java web应用程序部署到google app engine,部署成功,但所有后端服务都出现404错误_Java_Spring Mvc_Google App Engine_Google Cloud Platform_Paas - Fatal编程技术网

使用maven将java web应用程序部署到google app engine,部署成功,但所有后端服务都出现404错误

使用maven将java web应用程序部署到google app engine,部署成功,但所有后端服务都出现404错误,java,spring-mvc,google-app-engine,google-cloud-platform,paas,Java,Spring Mvc,Google App Engine,Google Cloud Platform,Paas,我正在尝试使用maven将基于java/spring的web应用程序部署到google app engine,步骤如下 1) 在pom.xml中添加了appengine maven插件 <plugin> <groupId>com.google.appengine</groupId> <artifactId>appengine-maven-plugin</artifactId> <versi

我正在尝试使用maven将基于java/spring的web应用程序部署到google app engine,步骤如下 1) 在pom.xml中添加了appengine maven插件

<plugin>
       <groupId>com.google.appengine</groupId>
       <artifactId>appengine-maven-plugin</artifactId>
       <version>1.9.42</version>
       <configuration>
              <version>1</version>
              <oauth2>false</oauth2>
       </configuration>
</plugin>

com.google.appengine
. 

我们还需要其他配置吗?

嗨,你把它整理好了吗?我的appengine-web.xml文件中没有和,但在plugin-in-configuration标签中的pom.xml中保留了这两个?我的appengine-web.xml文件中没有和,但在plugin-in-configuration标签中的pom.xml中保留了和。
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>XXX-XXX-14807</application>
  <version>1</version>
  <threadsafe>true</threadsafe>
  <env-variables>
    <env-var name="env" value="prod" />
  </env-variables>
</appengine-web-app>