web.xml中<security-constraint>和四种认证类型

https://blog.csdn.net/lisheng19870305/article/details/40819481

sztc开发中http请求一直发送后无响应,通过soapui定位异常信息为连接拒绝:

org.apache.http.conn.HttpHostConnectException: Connection to http://xxxxx refused

解决办法:

查看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

-->

再次请求后,正常。

原文地址:https://www.cnblogs.com/guanghuiqq/p/9369053.html