我正在运行 springdoc-openapi-maven-plugin,具有以下(标准)配置:
<plugin>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
<version>0.2</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
该插件似乎运行,但没有输出。
我在 Maven 输出中收到 404 错误:
[INFO] --- springdoc-openapi-maven-plugin:0.2:generate (integration-test) @ paatinc-util-websrv ---
10:40:33.930 [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
10:40:33.931 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
10:40:33.956 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - Completed initialization in 25 ms
10:40:33.969 [http-nio-8080-exec-1] INFO io.paat.util.filter.LoggingFilter - GET http://localhost:8080/v3/api-docs from 127.0.0.1
[ERROR] An error has occured: Response code 404
Run Code Online (Sandbox Code Playgroud)
我可以从我的日志中看到 404 正在调用:http://localhost:8080/v3/api-docs
我还在 springdoc-openapi-maven-plugin 文档中看到以下配置:
<configuration> …Run Code Online (Sandbox Code Playgroud) 我已经使用ACM创建了SSL证书。我想使用此证书来同时提供S3存储桶中的静态内容和lambda。目前,我想避免使用CloudFront并通过API Gateway代理S3和Lambda,以便所有内容都从单个SSL域提供(没有CORS问题)。
理想情况下,我会打电话给:
https://my.customdomain.com/ (lambda redirects to /web/index.html)
https://my.customdomain.com/api/* (lambdas)
https://my.customdomain.com/web/* (static content - s3)
Run Code Online (Sandbox Code Playgroud)
以上架构合理/可行吗?
amazon-s3 amazon-web-services aws-lambda aws-api-gateway aws-certificate-manager