Microservice Configuration in play 2 framework

前端 未结 1 1044
醉话见心
醉话见心 2021-01-16 20:02

I have divided my application into different projects in PLay 2. But I just realised I do not know how to run multiple play application in the same server.

Anyone kn

相关标签:
1条回答
  • 2021-01-16 20:40

    By server, I'm guessing you mean Tomcat / Jetty / other containers / etc ? You can either deploy each service on its own container (tomcat), or rename the generated WAR file to a.war, b.war, c.war in which case you can access the different services at localhost:8080/a, localhost:8080/b, etc

    If you're running JARs, you need to figure out how to run each service on its own port since you can only run one service per port, eg localhost:8081, localhost:8082

    Have not used play myself

    0 讨论(0)
提交回复
热议问题