HTTP到HTTPS重定向tomcat基本url未重定向

HTTP到HTTPS重定向tomcat基本url未重定向,tomcat,ssl,redirect,Tomcat,Ssl,Redirect,web.xml 安全核心上下文 /* 保密的 server.xml <security-constraint> <web-resource-collection> <web-resource-name>Secured Core Context</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection>

web.xml


安全核心上下文
/*
保密的
server.xml

<security-constraint>
<web-resource-collection>
    <web-resource-name>Secured Core Context</web-resource-name>
    <url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
   </user-data-constraint>
</security-constraint>

我可以在http和https中运行应用程序。访问时,它不会重定向到https。但如果我访问它,它会重定向到https。我错过了什么

<Connector SSLEnabled="true" acceptCount="100" clientAuth="false"      connectionTimeout="20000" debug="0" disableUploadTimeout="true" enableLookups="false" keystoreFile="./conf/Community.keystore" keystorePass="****" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" name="SSL" port="9255" scheme="https" secure="true" sslProtocol="TLS" sslProtocols="TLSv1,TLSv1.1,TLSv1.2"/>

<Connector acceptCount="100" connectionTimeout="20000" debug="3" disableUploadTimeout="true" enableLookups="false" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" name="WebServer" port="8090" redirectPort="9255"/>