Google Datastore Emulator using Java (Not using GAE)
问题 I am using Google Cloud's Datastore Client Library for Java to access the Cloud Datastore. Note : I am not using App Engine to deploy my application; just running a local application for development purposes. Following the example, I can read/write to the Cloud Datastore. Datastore datastore = DatastoreOptions.defaultInstance().service(); KeyFactory keyFactory = datastore.newKeyFactory().setKind("MyKind"); Key key = keyFactory.newKey(); Entity entity = datastore.get(key); I want to be able to