system_out_제거
This commit is contained in:
+2
-2
@@ -25,14 +25,14 @@ public class SystemPropConfig implements ServletContextAware {
|
||||
|
||||
@PostConstruct
|
||||
public void loadlPropertiesToSystemProp() {
|
||||
System.out.println("loadPropertiesToSystemProp: "+SYSTEM_PROP_FILE_PATH);
|
||||
// System.out.println("loadPropertiesToSystemProp: "+SYSTEM_PROP_FILE_PATH);
|
||||
Properties sysProp = new Properties();
|
||||
try(InputStream is = servletContext.getResourceAsStream(SYSTEM_PROP_FILE_PATH)){
|
||||
sysProp.load(is);
|
||||
sysProp.forEach((key, value) -> {
|
||||
if (StringUtils.isBlank(System.getProperty((String) key))) {
|
||||
System.setProperty((String) key, (String) value);
|
||||
System.out.println("Set system prop: "+key+"="+value);
|
||||
// System.out.println("Set system prop: "+key+"="+value);
|
||||
}
|
||||
});
|
||||
} catch (Throwable th) {
|
||||
|
||||
Reference in New Issue
Block a user