Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在运行时在 application.properties 值中获取属性值?例如,假设我将一个名为的属性添加application.type到我的属性文件中,我想在运行时提取该值并将其显示在网页中。感谢磨坊。
application.type
根据文档:
def appType = grailsApplication.metadata['application.type']