我在这里关注 Azure 关于 Java API 的基本教程:https ://www.windowsazure.com/en-us/develop/java/how-to-guides/table-service/#CreateTable
但是遇到以下错误:
找不到标志
符号:方法 createTableIfNotExists(java.lang.String)
位置:com.microsoft.windowsazure.services.table.client.CloudTableClient 类
整个小程序(从Azure教程复制):
import com.microsoft.windowsazure.services.core.storage.*;
import com.microsoft.windowsazure.services.table.client.*;
import com.microsoft.windowsazure.services.table.client.TableQuery.*;
public class AzureTableWrite {
public static void main(String[] args) {
// Define the connection-string with your values
final String storageConnectionString =
"DefaultEndpointsProtocol=http;" +
"AccountName=skivvy;" +
"AccountKey=foobar";
// Retrieve storage account from connection-string
CloudStorageAccount storageAccount =
CloudStorageAccount.parse(storageConnectionString);
// Create the table client.
CloudTableClient tableClient = storageAccount.createCloudTableClient();
// Create the table if it doesn't exist.
String tableName = "people";
tableClient.createTableIfNotExists(tableName);
}
}
有没有人遇到过同样的问题?任何帮助表示赞赏!