application.yml中的Grails 3 serverURL

时间:2017-05-05 07:22:46

标签: grails grails-3.1

我正在尝试在application.yml中为每个环境设置serverURL,如下所示:

environments:
    development:
        grails:
            serverURL: http://localhost:8089
        dataSource:
            dbCreate: create
            url: jdbc:postgresql://localhost:5432/tests
            username: postgress
            password: rootass

但它不起作用 - 当我run-app它仍然在8080上运行。此外,如何设置应用程序名称或上下文名称,以便{I} run-app时{{3} }}

0 个答案:

没有答案
相关问题