大佬们,这个是什么原因跑it抛的异常

  Caused by:
[2021-03-05T03:20:41.153Z]         org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.baozunAppConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'baozun.url' in value "${baozun.url}"
[2021-03-05T03:20:41.153Z] 
[2021-03-05T03:20:41.153Z]             Caused by:
[2021-03-05T03:20:41.153Z]             java.lang.IllegalArgumentException: Could not resolve placeholder 'baozun.url' in value "${baozun.url}"
[2021-03-05T03:20:51.029Z] Executing test test010UpdateName [io.naza.controller.ChannelControllerIT] with result: FAILURE

需要在测试目录下建立一个配置文件,里面有你的配置项

是 “baozun.url” 这个占位符对应的值在你的配置文件中没找到

就是说你的占位符 ${baozun.url} 没有找到,你要检查你有没有在配置文件中加这个配置。

 value (${baozun.url})这个没在yml配置吧

${baozun.url} 配置文件缺少配置吧,看看是不是参数写错了

这样改,${baozun.url:http://www.baidu.com}加个默认值就可以了

谢谢大家