首页 文章

Lagom微服务和Akka HTTP配置位置

提问于
浏览
0

我正在使用Lagom 1.4.6并获得

akka.http.scaladsl.model.EntityStreamException: HTTP chunk size exceeds the configured limit of 1048576 bytes

使用ServiceCall获取build.sbt中定义的impl .

也不

akka.http.server.parsing.max-chunk-size = 10m
akka.http.client.parsing.max-chunk-size = 10m

也不

akka.http.host-connection-pool.client.parsing.max-chuck-size = 10m

在application.conf root或application.conf中

play { ... }

play { server { ... } }

块似乎做任何事情,我仍然在Dev中使用默认的1M限制获得相同的错误消息 .

在Lagom微服务中Akka HTTP configuration应该去哪里?

1 回答

  • 1

    您需要使用 play.server 为Akka-HTTP设置添加前缀 . 文档中的相关部分可以找到here .

    请注意,在开发模式下,使用自定义HTTP服务器非常重要,因此可能会忽略这些设置 .

相关问题