在weblogic启动脚本中添加-DUseSunHttpHandler=true ,告诉WebLogic使用Sun的HttpHandler而不要使用WebLogic自己的。这样配置后使用url.openConnection()就会返回HttpsURLConnection类型对象了