如何在 Maven 中读取外部属性文件 [英] How to read an external properties file in Maven
本文介绍了如何在 Maven 中读取外部属性文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何在 Maven 中读取 x.properties 文件.我知道有一些方法可以使用资源过滤来读取属性文件并从中设置值,但我想在我的 pom.xml 中使用一种方法,例如:
Does anyone know how to read a x.properties file in Maven. I know there are ways to use resource filtering to read a properties file and set values from that, but I want a way in my pom.xml like:
<properties file="x.properties">
</properties>
有一些关于这个的讨论:Maven 外部属性
There was some discussion about this: Maven External Properties
推荐答案
这篇关于如何在 Maven 中读取外部属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文