当在Play控制台上发出“run”命令时,我如何更改开发模式下Play框架使用的默认端口?
这适用于Play框架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.