In spring boot, the base url maybe localhost:8080 or a different one. Now I want to use it in angular. I saw that many examples online just hardcode it in angular http client call code.
But the base url can be changed, for example the port number changed or the environment is changed from dev to qa or production. So my question is that possible dynamically expose it from spring boot and retrieve it from angular?