报错内容:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'order.username' in value "${order.username}"
报错原因:springcloud 版本升级不能直接让 boostrap.xml生效
解决方案:引入spring-cloud-starter-bootstrap
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>