In the multi-environment configuration through maven in Spring Boot above , we configured the environment selection through pom.xml
, but this only takes effect in the packaged jar. It is indeed a bit problematic to start this thing directly through the idea.
In fact, let's execute compile, manually compile it
, and then restart it.
It is obvious that our configuration here has taken effect.
This means that every time we change the pom.xml environment configuration, we have to manually execute compile and let him recompile.