Version: 2.7.0
I can set logging.charset.console=utf-8 in application.properties when there is no bootstrap context in my project, but when there is a bootstrap context I have to set that config into bootstrap.properties because it is already set when the bootstrap context starts.Even though re-initializing the logging system.I'm wondering if this is appropriate.
The key code as follows:
private static final BiConsumer<String, String> systemPropertySetter = (name, value) -> {
if (System.getProperty(name) == null && value != null) {
System.setProperty(name, value);
}
};
Comment From: wilkinsona
The bootstrap context is a Spring Cloud Commons feature.