我去了文檔,發現這些 #空閒連接將自動關閉的時間。 #設置爲infinite以完全禁用空閒連接超時。 空閒超時= 10秒 # Defines the default time period within which the application has to
# produce an HttpResponse for any given HttpRequest it received.
#
下面的Scala代碼編譯: import spray.json.DefaultJsonProtocol._
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
import akka.http.scaladsl.server.Directives.complete
case class Item(name: