An error is reported when @ value is used to read the value in YML in springboot

Alibaba cloud Q & A 2022-02-13 06:56:05 阅读数:281

error reported value used read

Report errors :Could not resolve placeholder 'wechat.corp-id' in value "${wechat.corp-id}"


Take the answer 1:

This mistake is because yml The parameters in the configuration file cannot be read, resulting in , Check : 1、 Whether the configuration path is correct ; 2、 Are there multiple configurations ; 3、 Whether the configured content is null

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.