因项目需要,去掉consul能力,但是编辑好了yml文件出现如下错误,一直读不到配置文件

报如下的错误:
已连接到目标 VM, 地址: ''127.0.0.1:51162',传输: '套接字''
2021-10-18 15:24:36.481 [main] INFO o.s.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.5.2)
解决办法,在包依赖的地方,去掉consul的依赖
// implementation("org.springframework.cloud:spring-cloud-starter-consul-bus:3.0.3")
// implementation("org.springframework.cloud:spring-cloud-starter-consul-config:3.0.3")
在尝试从SpringBoot项目中移除Consul依赖以禁用其功能后,遇到了应用启动问题。错误日志显示配置文件未被正确读取。解决方案是删除与Consul相关的依赖项,例如'spring-cloud-starter-consul-bus'和'spring-cloud-starter-consul-config'。移除这些依赖后,问题得到解决,应用能够正常启动。
1682

被折叠的 条评论
为什么被折叠?



