How do you start a java servlet over https?

后端 未结 3 1626
走了就别回头了
走了就别回头了 2021-02-06 16:36

I am trying to run a servlet on tomcat in eclipse. When i do run on server, the servlet runs and provides me with a link like follows:

\"http://localhost:8443/AuthServe

3条回答
  •  无人及你
    2021-02-06 17:19

    If you want to be sure to use the https protocol when you send request to that servlet you need to change the WEB-INF/web.xml file in your web application. In your case add this configuration params:

    
        
            AuthServer
            /Server
        
        
            CONFIDENTIAL
        
    
    

提交回复
热议问题