Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc 在Wildfly 10中禁用http?_Spring Mvc_Java 8_Wildfly 10 - Fatal编程技术网

Spring mvc 在Wildfly 10中禁用http?

Spring mvc 在Wildfly 10中禁用http?,spring-mvc,java-8,wildfly-10,Spring Mvc,Java 8,Wildfly 10,我在我的回复标题中添加了一个标题,以在我的站点中提供安全性,但当我在登录页添加此标题时,此标题将使用http协议打开我的网站 http:/www.xyz.com 我想用https打开我的登录页,即 https:/www.xyz.com 我添加的头是严格传输安全性,并且严格传输安全性头不能通过未加密的通道发送。 因此,你能建议我如何在我的登录页中禁用http,除此之外,我可以使用https <subsystem xmlns="urn:jboss:domain:undertow:3.0

我在我的回复标题中添加了一个标题,以在我的站点中提供安全性,但当我在登录页添加此标题时,此标题将使用http协议打开我的网站

 http:/www.xyz.com
我想用https打开我的登录页,即

https:/www.xyz.com
我添加的头是
严格传输安全性
,并且
严格传输安全性
头不能通过未加密的通道发送。 因此,你能建议我如何在我的登录页中禁用
http
,除此之外,我可以使用
https

 <subsystem xmlns="urn:jboss:domain:undertow:3.0">
        <buffer-cache name="default"/>
        <server name="default-server">
            <http-listener name="default" socket-binding="http" redirect-socket="https" disallowed-methods="TRACE TRACK"/>
            <https-listener name="https" enabled-protocols="TLSv1.2" lve-peer-address="true" socket-binding="https" disallowed-methods="TRACE TRACK"/>
            <host name="default-host" alias="localhost">
            <location name="/" handler="welcome-content"/>            
            <filter-ref name="content-security-policy-header"/>
            <filter-ref name="strict-transport-security-header"/>
            <filter-ref name="public-key-pins-header"/>                    
            </host>
        </server>          
        <handlers>
            <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
        </handlers>
     <filters>               
        <response-header name="strict-transport-security-header" header-name="Strict-Transport-Security" header-value="max-age=31622400; includeSubDomains"/>
        <response-header name="public-key-pins-header" header-name="Public-Key-Pins" header-value="pin-sha256=&quot;abc=&quot;;pin-sha256=&quot;Xyz=&quot;;  pin-sha256=&quot;h6801m+wer=&quot;; pin-sha256=&quot;/BUJ=&quot;; includeSubDomains ; max-age=2592000 "/>
    </filters>
 </subsystem>

请帮助我解决此问题。我想使用
https协议打开我的网站登录页

 http:/www.xyz.com
谢谢