How can I choose bootstrap.yml according to db config?

304 Views Asked by At

I have two nacos bootstrap.yml which means two nacos with different ip, I want to load one of the bootstrap.yml according to db config.

For example, if my loadVariable value from db config is A, I want to load bootstrap-a.yml. How can I do that?

Here is my purpose step:

  1. search data from db to decide load bootstrap-a.yml or bootstrap-b.yml
  2. register the service to nacos according to bootstrap config file
0

There are 0 best solutions below