sofastack / sofa-serverless

a framework to enabe app architecture evolve from monolithic to microservices smoothly by involving modular and macroservices architecture.
https://sofaserverless.gitee.io/home/
Apache License 2.0
115 stars 41 forks source link

Add biz system properties support 394 feature #452

Closed qq290584697 closed 8 months ago

qq290584697 commented 8 months ago

完成issue #394 支持业务模块和基座之间的系统变量隔离 其中基座的系统变量为业务模块变量的默认值 即:

  1. 业务模块存在该系统变量,直接返回
  2. 业务模块不存在该系统变量,返回基座的系统变量的值

考虑到并非所有场景都需要将系统变量隔离 如需使用,需要在基座应用的main方法中,插入下列代码

MultiBizProperties.initSystem()

codecov[bot] commented 8 months ago

Codecov Report

Attention: 35 lines in your changes are missing coverage. Please review.

Comparison is base (b83af8a) 80.93% compared to head (1e59b6f) 81.00%. Report is 9 commits behind head on master.

Files Patch % Lines
...ofa/serverless/common/util/MultiBizProperties.java 81.38% 25 Missing and 10 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #452 +/- ## ============================================ + Coverage 80.93% 81.00% +0.06% Complexity 64 64 ============================================ Files 45 46 +1 Lines 1028 1216 +188 Branches 90 113 +23 ============================================ + Hits 832 985 +153 - Misses 145 170 +25 - Partials 51 61 +10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.