How to change grails localhost port?

前端 未结 11 1440
情书的邮戳
情书的邮戳 2020-12-22 20:39

I\'m using grails 2.0.4. And I want to use port:8090 instead of 8080 for localhost. So need help to change the port to 8090 permanently.

11条回答
  •  猫巷女王i
    2020-12-22 21:17

    This solution adds to the answers http://stackoverflow.com/a/10956283/122457. In Grails 2.x, add the following to BuildConfig.groovy:

    grails.server.port.http = 8090
    

    See http://forum.springsource.org/archive/index.php/t-97024.html for further details.

提交回复
热议问题