Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 766
Abhishek Anand Avatar asked Dec 11 '25 11:12

Abhishek Anand


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!";
    }
like image 146
GAEfan Avatar answered Dec 13 '25 08:12

GAEfan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!