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}"

1634544009046_5BB1DFAE-3C38-4412-867F-BEB90E81A041.png




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. https://en.javamana.com/2022/02/202202130656031207.html