我已经使用SpringBoot构建了一个应用程序接口,并将其部署到一个AWS EC2实例中。我希望使此SpringBootAPI只能通过AWS API Gateway访问。我的意思是,没有人可以绕过AWS API Gateway直接调用该API。我想这样做是为了能够应用一些策略,如节流和其他策略。是否可以使该API仅通过AWS API Gateway接收呼叫
我一直在寻找如何解决这个问题。我发现了类似的问题,并尝试了所有方法,但都没有帮助。重新安装Java和gradle没有帮助。(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-
第二个问题是关于构建a new custom stater我希望能够在spring-boot-devtools中做一些更改。将spring-boot-devtools文件夹作为模块导入到Intellij中的项目中。为了使Intellij使用我自己的源代码而不是maven repo,我从pom.xml中删除了spring-boot-devtools