Grails - application.properties的用途是什么

时间:2014-08-05 12:00:32

标签: grails grails-2.0 grails-plugin

我读了你可以使用g:meta标签和grials接口Meta类访问的application.properties文件。这很好但是,我看到了一些这样的示例项目

plugins.export=1.5
plugins.google-visualization=0.5.6
plugins.jquery-ui=1.8.24
plugins.markdown=1.0.0.RC1
plugins.svn=1.0.0.M1

此文件中使用mension版本有什么用处。请告诉我该文件的确切用法。

1 个答案:

答案 0 :(得分:2)

回到石器时代,根据您的示例,插件依赖项列在application.properties中。但是这已经改变了(很久以前),它们现在应该列在BuildConfig.groovy中。通常,application.properties仅定义以下内容

# the version of Grails that should be used
app.grails.version=2.4.3

# the name of the app
app.name=myapp

# the version of the servlet API that should be used
app.servlet.version=3.0

# the version of your app
app.version=0.1
相关问题