How do you start a java servlet over https?

后端 未结 3 1627
走了就别回头了
走了就别回头了 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:10

    In TOMCAT_HOME/conf folder, there’s a file named web.xml. In there, you have to add a security-constraint element.

    
        
            secured page
            /...
        
        
            CONFIDENTIAL
        
    
    

    Make sure that matches your path that you want to be secured.

提交回复
热议问题