-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] 多模块项目,配置文件是否存在覆盖关系 #1028
Comments
不知道是存在,只有字啊常量之间才有覆盖关系,我看文档里面没有相关说明 |
没有覆盖关系,但有加载执行顺序。所以逻辑上部分规则可能表现得像覆盖关系。
你可以加一些日志,比如这样:
也可以这样:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
项目背景:
多模块项目,在项目的根目录下面,存在一个配置文件 .easy.api.config 我用来配置公共属性,和默认值
模块内部,会在模块的根目录下面,存在一个配置文件 .easy.api.config 用来配置个性化的属性,比如说归属到的module,和folder
插件版本:2.5.4.191.0
以下是几种尝试过的配置:
一、
module.name=A
folder.name=defaultFolderName
2)模块内部存在配置:
module.name=A
folder.name=realFolder
二、
module.name=A
folder.name=defaultFolderName
2)模块内部存在配置:
module.name=B
folder.name=#folder
三、
module.name=A
folder.name=defaultFolderName
2)模块内部存在配置:
module.name=B
[email protected]#value
在上述几种情况下,只有方案一,模块内部能够读取到正确的 module.name 跟 folder.name,其他两种都不行
对于其余没有覆盖的到的属性,读取值是正常的
The text was updated successfully, but these errors were encountered: