Spring Boot Not enough variable values available to expand ‘xx.xx‘问题解决
问题描述:java.lang.IllegalArgumentException: Not enough variable values available to expand 'wechat.corpid'问题分析:1、使用@Value注解时使用错误。@Value("{wechat.corpid}")privateString corpid;解决办法:检测@Value注解格式是否正确。@Value
·
问题描述:
java.lang.IllegalArgumentException: Not enough variable values available to expand 'wechat.corpid'
问题分析:
1、使用@Value注解时使用错误。
@Value("{wechat.corpid}")
private String corpid;
解决办法:检测@Value注解格式是否正确。
@Value("${wechat.corpid}")
private String corpid;
更多推荐
已为社区贡献37条内容
所有评论(0)