更改grails localhost端口

1.将Config.groovy中的grails.serverURL从“http://localhost:8080/${appName}”更改为“http://localhost:8090/${appName}”。
2.在命令行中使用-Dgrails.server.port.http = 8090启动Grails。 将GRAILS_OPTS环境变量设置为-Dgrails.server.port.http = 8090以使其自动应用。

发表评论