lwdbcy 2021-03-25 14:30 采纳率: 53.3%
浏览 878
已结题

springcloudconfig客户端启动问题?

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.

我也尝试了使用它下面给的建议,但是还是报这个错误,各位小伙伴有碰见过吗?

  • 写回答

3条回答 默认 最新

  • lwdbcy 2022-01-05 10:27
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月5日
  • 已采纳回答 1月5日