springboot读取配置不存在报错

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



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



posted @ 2019-06-19 11:22  青竹玉简  阅读(669)  评论(0编辑  收藏  举报