Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
java-chassis-1.2.1
-
None
Description
Currently the ConfigurationSpringInitializer is deployed to get the Environment from Spring. All of the config items in the Environment are fetched with the value resolved from the Environment. These config items are later inject into the configurations of ServiceComb-Java-Chassis.
If there are some environment items with irregular value, the Spring Environment may fail to resolve the config item and throw an Exception, even though that environment items are not relative to the microservice instances.
It's necessary to provide a switch to disable the Exception in this situation. If users don't want the boot up process to be interrupted by such failure, they can enable the suppression feature, then all of such Exceptions are caught and only warn logs are printed to show which config keys are failed to be resolved.