Google app engine gives 404 to my spring boot rest api app

Viewed 972

I have a pure API Spring Boot App with CORSFilter.
When I deploy the app on google app engine, the following screen comes:

Deploy Sreen

However, the URL gives me this:

URL Screen

My complete project code is here at GitHUB.

The SMSService.java might give an error while compiling since I had to remove the AWS keys in order to make it public and they are asking me to take it down.

1 Answers

Try adding a url hadler to your app.yaml:

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

And, what directory are you deploying from? You have app.yamls in both of these:

/gcp

gcp/src/main/appengine/

Update:

In MainController.java, add a url handler for /:

public class MainController {

    @RequestMapping("/")
    public String home() {
        return "Hello World!";
    }
Related