Lagom-网关不服务呼叫

时间:2019-01-03 15:59:53

标签: scala microservices lagom

我已经使用Scala获得了简单的“ helloWorld” Lagom应用程序。 我是按照教程做的,但是没有来自浏览器的呼叫。 http://localhost:9008/services也没有我的电话。 我已经在ServiceApi的描述符中找到了它(如下)

  

.withAutoAcl(true)

在application.conf中也有它(以下)

  

play.application.loader = hello.impl.application.ProcessorLoader

这是ProcessorApp

abstract class ProcessorApp(context: LagomApplicationContext) 
    extends LagomApplication(context) 
       with ClusterComponents 
       with AhcWSComponents 
{
override lazy val lagomServer = serverFor[ProcessorServiceApi(wire[ProcessorServiceImpl]) 

override lazy val jsonSerializerRegistry = ProcessorSerializerRegistry
}

和ProcessorLoader

class ProcessorLoader extends LagomApplicationLoader
{
  override def loadDevMode(context: LagomApplicationContext) =
     new ProcessorApp(context) with LagomDevModeComponents

  override def load(context: LagomApplicationContext) =
     new ProcessorApp(context) {
         override def serviceLocator = ServiceLocator.NoServiceLocator
     }

  override def describeServices = List(readDescriptor[ProcessorServiceApi])
}

0 个答案:

没有答案