I am working on the Java desktop application using Swing. As the application is data centric, I am using the JDBC for connection with mySql. I would like to store database connection (connectionString), username and password in the seperate file. What will be the best approach for this?
(In .net app.config store these informations)
You can store the parameters in a properties file like
Store this information in a properties file like say config.properties. You can load the properties in java during runtime using the
Propertiesclass in java