我正在研究Google App Engine應用程序,並且實施了一個我想測試的servlet。具體來說,我想調用servlet的doPost()
方法,並檢查結果。有沒有什麼辦法可以做到這一點,而無需每次都重新部署?從開發模式測試Google App Engine應用程序的doPost()
目前我有部署,以檢查它,這是非常不方便的。如果這是我的(不是實際的)部署的URL:
HttpPost的PostMethod =新 HttpPost( 「http://my_app.appspot.com/my_app/my_app_place」);
但是,如果我將開發模式URL放在HttpPost(...)
中,則會出現"Permission Denied"
錯誤。有沒有人設法做到這一點?
您使用什麼網址進行開發模式?這應該只是罰款... –
http://127.0.0.1:8888/MyApplication.html?gwt.codesvr=127.0.0.1:9997/my_app/my_app_place我讀了你必須改變127.0.0.1到10.0.2.2對於模擬器,但是這從我的servlet的doPost中檢索MyApplication.html文件的內容?! – casper
http://stackoverflow.com/questions/10542939/android-emulator-connect-to-gae-on-localhost這是我的問題的更新版本,我發現了一些新的東西。 – casper