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
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
insteadspring.config.import=optional:configserver:http://ip:8888
and makecurl -H"content-type: application/json" -d{} http://ip:8083/actuator/refresh
- spring bus doesn't update2024-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