配置步骤:

1.在TongWeb上建https端口。

2.在TongWeb建http端口,其中"重定向端口 "配置https端口

3.应用web.xml中配置如下:

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

 4.部署应用,当通过http://IP:8088访问时,自动跳转到https://IP:8443上。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐