您的位置:首页 > 大数据 > 人工智能

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

2018-07-25 23:46 615 查看

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> 

-->

再次请求后,正常。

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: