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.
我已经使用 maven 创建了一个不错的多模块项目,但现在我想知道存储跨模块共享的属性文件的最佳位置是什么。举个例子,我有 4 个模块都需要一个 log4j.properties 文件,我需要把它放在每个模块中还是有一个中心位置可以放置它?
如果你有一个父项目,这将是最好的地方。
否则,一个被其他模块包含的模块。
放入log4j.properties_/src/main/resources
log4j.properties
/src/main/resources