How to change the default port 9000 in Play 2.3.x in build definition?

纵然是瞬间 提交于 2019-12-21 02:48:15

问题


With Play 2.2.x I could set the default port with build.sbt file i.e:

Build.sbt
  play.Project.playScalaSettings

  play.Project.playDefaultPort := 9001

After 2.3.x upgrade play.Project.playDefaultPort does not exists any more.

I do not want to type-Dhttp.port=9001 or run 9001


回答1:


play.PlayImport.PlayKeys.playDefaultPort := 9001

https://github.com/playframework/playframework/blob/2.3.4/framework/src/sbt-plugin/src/main/scala/PlayImport.scala#L111



来源:https://stackoverflow.com/questions/26040275/how-to-change-the-default-port-9000-in-play-2-3-x-in-build-definition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!