boot版本2.4以上需要手动导入spring-cloud-starter-bootstrap依赖,否则nacos配置中心无法识别bootstrap.properties,会报异常错误
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
<version>3.1.3</version>
</dependency>
boot版本2.4以上需要手动导入spring-cloud-starter-bootstrap依赖,否则nacos配置中心无法识别bootstrap.properties,会报异常错误
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
<version>3.1.3</version>
</dependency>