谷歌应用程序引擎给我的春季启动休息API应用程序404

问题描述 投票:3回答:1

我有一个带有CORSFilter的纯API Spring Boot应用程序。 当我在谷歌应用引擎上部署应用程序时,会出现以下屏幕:

但是,URL给了我这个:

我的完整项目代码is here at GitHUB

SMSService.java在编译时可能会出错,因为我必须删除AWS密钥以使其公开并且他们要求我将其删除。

spring-boot google-app-engine google-cloud-platform
1个回答
0
投票

尝试在你的app.yaml中添加一个url hadler:

handlers:
- url: /.*
  script: this field is required, but ignored

而且,您从哪个目录部署?你有两个app.yamls:

/gcp

gcp/src/main/appengine/

更新:

MainController.java中,为/添加一个url处理程序:

public class MainController {

    @RequestMapping("/")
    public String home() {
        return "Hello World!";
    }
© www.soinside.com 2019 - 2024. All rights reserved.