spring-cloud / spring-cloud-bus

Spring Cloud event bus
http://cloud.spring.io/spring-cloud-bus/
Apache License 2.0
409 stars 242 forks source link

Spring bus doesn't update #275

Open cakctus opened 3 months ago

cakctus commented 3 months ago

Hi everyone!

Application name

spring.application.name=cakctus-gateway

Server port

server.port=8083

Spring config

spring.config.import=optional:configserver:http://ip:8888

spring.cloud.config.discovery.enabled=true spring.cloud.config.discovery.service-id=CAKCTUS-CONFIG spring.profiles.active=default

spring.main.web-application-type=reactive

When i use this config works fine, if u use spring.config.import=optional:configserver:CAKCTUS-CONFIG instead spring.config.import=optional:configserver:http://ip:8888 and make curl -H"content-type: application/json" -d{} http://ip:8083/actuator/refresh - spring bus doesn't update

2024-08-16T11:28:13.668+03:00 INFO 19320 --- [cakctus-gateway] [oundedElastic-6] o.s.c.c.c.ConfigServerConfigDataLoader : Fetching config from server at : CAKCTUS-CONFIG 2024-08-16T11:28:13.669+03:00 WARN 19320 --- [cakctus-gateway] [oundedElastic-6] o.s.c.c.c.ConfigServerConfigDataLoader : Could not locate PropertySource ([ConfigServerConfigDataResource@27876359 uris = array['CAKCTUS-CONFIG'], optional = true, profiles = 'default']): URI is not absolute