1
I was taking a look here and I still can’t find out if there is a way, I believe you also go through this.
When we are developing an application that uses some service, we have somewhere in our code the address of the server that we will use to send/receive the data that usually, when we are developing, we point to our local IP or server testing, and when we put into production we go there in the code and change the address(s) as in the code below:
/* Exemplo */
Class Servidor{
public String final SERVIDOR = "http://192.168.1.8:8080"; //DESENVOLVIMENTO
/* public String final SERVIDOR = "http://servidorproducao.com.br"; //DESENVOLVIMENTO */
}
In the Spring I use the spring.profiles.active
which I define as dev where I have the files already configured with all development addresses that just change an environment variable or on itself web.xml
to change all configuration automatically or even at runtime.
There is something similar that does this automatically?
fmsedrez, thinking that the only way to make it more friendly will be this very.
– claudsan