springboot读取配置不存在报错

@Value("${log.regId}")
private String regId = "123123";



String regId = env.getProperty("log.regId","123123");



原文地址:https://www.cnblogs.com/matd/p/11050271.html