spray-json

    -2热度

    3回答

    像C++语言一样,在'oop'中有'public','private'和'protected'。我尝试了两种简单的程序。 以下是C++中的第一种情况。 class A { public: string name; } int main(void) { A a; a.name; } 而且,第二种情况下... class A { protecte

    0热度

    2回答

    我有两个表: `table_1` +----+----------+ | id | value | +----+----------+ | 1 | value_1 | | 2 | value_2 | | 10 | value_10 | | 20 | value_20 | | 50 | value_50 | +----+----------+ `table_2` +---

    1热度

    1回答

    我代表这两个JSON 2个JsArray小号提要: [{ "value1":"foo", "value2":"bar" }, {...}] [{ "value3":"foo2", "value4":"bar2" }, {...}] 如何合并只有每个人的第一要素来获得: { "value1":"foo", "value2":"b

    0热度

    1回答

    我目前正在通过akka-http文档&的示例。我被困在可能非常琐碎的事情上:传递路由配置与指令和JsonSupport。我下面就introduction和文档json-support 对于JsonSupport我需要做一个类扩展akka.http.scaladsl.server.Directives: class RouteDef extends Directives with JsonSuppo

    1热度

    1回答

    我想解组json字符串。但最终会出现错误。无法正确理解错误。 下面是代码: import akka.actor.ActorSystem import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport import akka.http.scaladsl.unmarshalling.Unmarshal import akka.st

    1热度

    1回答

    我已经将我的主复位重置为sourceTree中的某个提交(硬)。主人已被重置,但我仍然得到一个消息拉(4后面)。在拉所有以前不需要的更改已添加到我的回购。如何在Hard rest之后忽略任何拉取请求?

    0热度

    1回答

    我建立与阿卡-HTTP和阿卡上游服务器,但它失去了2K +的要求有一定的要求。我错过了什么或者我对阿卡的理解是错误的。 这是我的代码 implicit val actorRef = ActorSystem("system", testConf) implicit val materializer = ActorMaterializer(ActorMaterializerSettings(

    1热度

    1回答

    希望你能帮我解决这个问题。使用Akka HTTP,Slick和PosgreSQL,我试图实施一个公告板作为练习。你可以在here for a full picture找到它的最新版本。 什么我有,总之: 我的表像这样: case class Post( postId: Option[Long] = None, threadId: Option[Long], secret

    1热度

    1回答

    准确地说,我需要在视频缓冲后处理我的WEBAPP视频。 通过使用Google我发现用于缓冲event handler将是: video.onwaiting = function(){ $(".buffering").show(); }; buffereing的元件是当视频需要缓冲出现装载机。 现在我需要处理视频缓冲5秒钟后,所以我可以使用$("buffering").hide();

    0热度

    1回答

    你如何使用RootJsonFormat与泛型? 我必须复制粘贴每一种可能性是这样的: trait IDJsonSupport extends SprayJsonSupport with DefaultJsonProtocol{ implicit object AddressIDFormat extends RootJsonFormat[ID[Address]] {