我有一个 Web 服务部署(作为 aar)文件到 Axis2,我使用这个教程:https://www.rukspot.com/blog/axis_2_sample_web_service_with_maven_and_eclipse
我可以进入“服务”页面 ( http://localhost:7070/axis2/services/listServices ) 它正确显示了我的网络服务。我可以单击该链接以获取 WSDL ( http://localhost:7070/axis2/services/MyService?wsdl ) 到目前为止一切正常,但我想将 http 更改为 https。 我知道这已经被问了一遍又一遍,但我还没有(还)找到 aar 文件的解决方案,当我复制 MyService.aar 并粘贴到 apache-tomcat/webapps/axis2/WEB-INF/services 时,url 是默认为http (http://localhost:7070/axis2/services/listServices) 我怎样才能将它更改为 https ?有任何想法吗?
相关信息: 智能理念, 轴 2, Java 8, Tomcat 8, maven
最佳答案
您可以通过定义新连接器在 server.xml 文件中设置 https。如果您没有 keystore 和证书(从头开始),我建议您在此处查看文档 https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html
关于java - 带有 maven 和 tomcat 的 AXIS2 web 服务,部署为 aar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58181215/