在播放控制台上发出"run"命令时,如何更改播放框架中播放框架使用的默认端口.
这适用于playframework 2.0 beta.
在命令行或application.conf中使用http.port配置参数似乎没有任何效果:
C:\dev\prototype\activiti-preso>play run --http.port=8080
[info] Loading project definition from C:\dev\prototype\activiti-preso\project
[info] Set current project to activiti-preso (in build file:/C:/dev/prototype/activiti-preso/)
Windows, really? Ok, disabling colors.
--- (Running the application from SBT, auto-reloading is enabled) ---
[error] org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:9000
[error] Use 'last' for the full log.
Run Code Online (Sandbox Code Playgroud)