要使用Akka身份验证与REST Http,可以按照以下步骤操作:
build.sbt
文件中添加以下内容:libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % "2.6.16",
"com.typesafe.akka" %% "akka-http-spray-json" % "10.2.6",
"com.typesafe.akka" %% "akka-http-xml" % "10.2.6",
"com.typesafe.akka" %% "akka-http-jackson" % "10.2.6",
"com.typesafe.akka" %% "akka-http-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-http-akka-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-actor" % "2.6.16",
"com.typesafe.akka" %% "akka-actor-typed" % "2.6.16",
"com.typesafe.akka" %% "akka-stream" % "2.6.16",
"com.typesafe.akka" %% "akka-stream-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-protobuf" % "2.6.16",
"com.typesafe.akka" %% "akka-persistence" % "2.6.16",
"com.typesafe.akka" %% "akka-persistence-query" % "2.6.16",
"com.typesafe.akka" %% "akka-cluster" % "2.6.16",
"com.typesafe.akka" %% "akka-cluster-tools" % "2.6.16",
"com.typesafe.akka" %% "akka-discovery" % "2.6.16",
"com.typesafe.akka" %% "akka-multi-node-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-slf4j" % "2.6.16",
"com.typesafe.akka" %% "akka-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-testkit-typed" % "2.6.16",
"com.typesafe.akka" %% "akka-remote" % "2.6.16",
"com.typesafe.akka" %% "akka-remote-tests" % "2.6.16",
"com.typesafe.akka" %% "akka-remote-artery" % "2.6.16",
"com.typesafe.akka" %% "akka-remote-tests-artery" % "2.6.16",
"com.typesafe.akka" %% "akka-distributed-data" % "2.6.16",
"com.typesafe.akka" %% "akka-typed" % "2.6.16",
"com.typesafe.akka" %% "akka-typed-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-osgi" % "2.6.16",
"com.typesafe.akka" %% "akka-bench-jmh" % "2.6.16",
"com.typesafe.akka" %% "akka-actor-testkit-typed" % "2.6.16",
"com.typesafe.akka" %% "akka-actor-testkit-typed-scaladsl" % "2.6.16",
"com.typesafe.akka" %% "akka-actor-testkit-typed-javadsl" % "2.6.16",
"com.typesafe.akka" %% "akka-actor-testkit-typed-shared" % "2.6.16",
"com.typesafe.akka" %% "akka-persistence-typed" % "2.6.16",
"com.typesafe.akka" %% "akka-persist-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-persistence-typed-testkit" % "2.6.16",
"com.typesafe.akka" %% "akka-kryo-serialization" % "2.1.1",
"