【问题标题】:Grails - What is the use of application.propertiesGrails - application.properties 有什么用
【发布时间】:2014-09-28 02:03:55
【问题描述】:
我阅读了您可以使用 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版本有什么用。请告诉我这个文件的确切用途。
【问题讨论】:
标签:
grails
grails-2.0
grails-plugin
【解决方案1】:
回到石器时代,根据您的示例,插件依赖项列在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