【发布时间】:2020-09-11 16:52:31
【问题描述】:
我有一个 Spring Boot 应用程序(2.3.0 版)并成功托管在 Google App Engine 标准环境中并且工作正常。此门户有自己的 Google 管理的 SSL 证书。
如何将门户从 http 重定向到 https。
我已尝试使用 pom.xml
中的 '<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<projectId>sample-spring-boot</projectId>
<version>1</version>
<ssl-enabled>true</ssl-enabled>
</configuration>
</plugin>
还尝试在 application.properties
中使用“security.require-ssl=true”但两者都没有重定向。有什么建议吗?
【问题讨论】:
标签: java spring-boot google-app-engine