質問

I am writing a plugin. I am adding some properties to the config.properties. Is there a naming convention that I should be following?

役に立ちましたか?

解決

While there isn't a set standard, it's best to look at some of the high quality plugins that are available for guidance. Typically you will see them use the following:

grails.plugin.nameofthepluginlowercase.configValue

The rational behind using the grails.plugin.nameoftheplugininlowercase is to ensure there are no collisions between plugins with similar configuration keys. (See here for said explanation)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top