gpt4 book ai didi

grails - BuildConfig.groovy和Config.groovy有什么区别?

转载 作者:行者123 更新时间:2023-12-02 14:20:02 25 4
gpt4 key购买 nike

我有一个grails应用程序。为什么某些属性在一个属性中起作用而在另一个属性中却不起作用?何时将属性放在一个中,何时将它们放在另一个中?

最佳答案

从Grails doc here

The first, BuildConfig.groovy, is for settings that are used when running Grails commands, such as compile, doc, etc. The second file, Config.groovy, is for settings that are used when your application is running. This means that Config.groovy is packaged with your application, but BuildConfig.groovy is not.

关于grails - BuildConfig.groovy和Config.groovy有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17600252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com