我试图在日食中运行tomcat上的一个servlet.当我在服务器上运行时,servlet运行并为我提供如下链接:
"HTTP://本地主机:8443/AuthServer /服务器"
我已经为SSL配置了我的Tomcat服务器,如下所示:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="C:\Users\owner\.keystore" keystorePass="sheetalkshirsagar">
Run Code Online (Sandbox Code Playgroud)
当我在服务器上运行servlet时,它仍然使用http.我希望我的servlet链接为"https:// ..."而不是"http:// ..".你是怎样做的?