지속성 레이어에 대해 Objectify와 함께 Spring Boot를 사용하고 있습니다. Flexible App Engine에 배포되고 있습니다. 컨트롤러 클래스에서이 코드를 실행하는 동안Objectify를 통한 스프링 부트
static {
ObjectifyService.register(LsUser.class);
}
:
java.lang.NullPointerException: No API environment is registered for this thread.
at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:180) ~[appengine-api-1.0-sdk-1.9.30.jar:na]
at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace(DatastoreApiHelper.java:196) ~[appengine-api-1.0-sdk-1.9.30.jar:na]
at com.google.appengine.api.datastore.Key.<init>(Key.java:96) ~[appengine-api-1.0-sdk-1.9.30.jar:na]