2011-07-08 17 views

回答

1

如果資源不在類路徑中(即未在服務器上部署),則不應使用getClass().getResourceAsStream()。這不是它的目的。請使用HttpURLConnection