springboot读取配置不存在报错
@Value("${log.regId}")
private String regId = "123123";
String regId = env.getProperty("log.regId","123123");
----淡定从容,宁静致远----
@Value("${log.regId}")
private String regId = "123123";
String regId = env.getProperty("log.regId","123123");