我正在使用端点来尝试为我的web应用程序创建一个病人实体。当我试图运行API时,我一直得到以下错误代码。"errors": [ "domain": "global", "message": "java.lang.IllegalStateExceptionhttp request, see the ObjectifyService.run() me
嗨,我使用注释来映射servlet而不是web.xml,我试图使用objectify从数据存储中检索实体(我使用java8版本的google ),我使用静态块注册实体(类)。我发现了一个错误:
java.lang.IllegalStateException: You have not started an Objectify context.at com.googlecode.objectify.ObjectifyService.ofy(Obje
() => {}).start();Exception in thread "Thread-17" java.lang.IllegalStateException: You have not started an Objectify context.到释义:如何在createThreadForCurrentRequest()生成的线程中运行Objectify<?>
当抛出异常时,我是Spring引导的大人物,我将响应作为HTML,而我需要它作为JSON。HTTP/1.1 500Content-Language: en-USDate: Mon, 28 May 2018 16:13:06 GMT
<html><body><h1>Whitelabel Error Page</h1><p>This application has no