Is there any way I can get a property value in the application.properties value at runtime? For example, say I add a property named application.type
into my properties file, I would like to pull this value out at runtime and display it in a webpage. Thanks a mill.
根据文档 :
def appType = grailsApplication.metadata['application.type']
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.