springcloudconfig客户端启动出现问题,
使用了bootstrap.yml确定其中内容应该没啥问题
报错:
Application failed to start due to an exception
org.springframework.cloud.config.client.ConfigServerConfigDataMissingEnvironmentPostProcessor$ImportException: No spring.config.import set
最后面给的描述:
***************************
APPLICATION FAILED TO START
***************************
Description:
No spring.config.import property has been defined
Action:
Add a spring.config.import=configserver: property to your configuration.
If configuration is not required add spring.config.import=optional:configserver: instead.
To disable this check, set spring.cloud.config.enabled=false or
spring.cloud.config.import-check.enabled=false.
我也尝试了使用它下面给的建议,但是还是报这个错误,各位小伙伴有碰见过吗?