好吧,我試圖失敗連接到遠程數據存儲和填充使用這裏列出的步驟,我的本地機器:https://cloud.google.com/appengine/docs/java/tools/remoteapi#Configuring_Remote_API_on_the_ClientGAE遠程API - 無法連接
public static void main(String[] args) {
String username = "[email protected]";
String password = "mygmailpassword";
RemoteApiOptions options = new RemoteApiOptions()
.server("myappname.appspot.com", 443)
.credentials(username, password);
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);
try {
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
...
我得到在安裝404 .install(選項): java.io.IOException:無法從遠程api獲取appId;狀態代碼= 404 我在這裏錯過了什麼嗎?我在我的web.xml中啓用了遠程API,並部署到GAE。我是該項目的所有者。
如果您得到404這意味着您的應用程序未提供服務,遠程API未正確配置(沒有端點),或者您錯誤地拼寫應用程序名稱。 – Adam