springboot读取配置不存在报错

港控/mmm° 2021-11-29 20:46 411阅读 0赞
  1. @Value("${log.regId}")
  2. private String regId = "123123";
  3. String regId = env.getProperty("log.regId","123123");

转载于:https://www.cnblogs.com/matd/p/11050271.html

发表评论

表情:
评论列表 (有 0 条评论,411人围观)

还没有评论,来说两句吧...

相关阅读