I can't find anything on how to work with Java environments (production, development, etc) since every time I search for "java environment variables" I get results of how to install Java on windows and windows environment variables (JAVA_HOME) or similar things. Could someone explain how Java environments work and where to find official documentation?
To put you in context, I'm a junior developer and I want to set a few different paths for my embedded database depending on whether I'm in production or development. My project doesn't have anything from spring or maven.
To better explain myself, I will give an example. In javascript, you can create files like .env , .env.development, etc. And inside them you put key value pairs. You can then retrieve that in your code. It dynamically returns the value depending on whether you are in development or production. I'm looking to do the same thing in Java but in a simple way. Without having to use Spring as it is extremely advanced