Initialize local datastore exception : No API environment is registered for this thread

后端 未结 3 999
终归单人心
终归单人心 2021-01-04 11:38

I would like to initialize my local data store with some data using a regular Java program (I do not want to start the Development Server and call a service/servlet), and I\

3条回答
  •  走了就别回头了
    2021-01-04 12:01

    Google provides a helper class that does exactly what you want - runs just enough code to work with the database, without launching the whole dev server. See the setUp and tearDown methods at http://code.google.com/appengine/docs/java/tools/localunittesting.html

提交回复
热议问题