我有一个带有CORSFilter的纯API Spring Boot应用程序。 当我在谷歌应用引擎上部署应用程序时,会出现以下屏幕:
但是,URL给了我这个:
我的完整项目代码is here at GitHUB。
SMSService.java
在编译时可能会出错,因为我必须删除AWS密钥以使其公开并且他们要求我将其删除。
尝试在你的app.yaml
中添加一个url hadler:
handlers:
- url: /.*
script: this field is required, but ignored
而且,您从哪个目录部署?你有两个app.yaml
s:
/gcp
gcp/src/main/appengine/
更新:
在MainController.java
中,为/
添加一个url处理程序:
public class MainController {
@RequestMapping("/")
public String home() {
return "Hello World!";
}