Answers for "java hide mysql login credentials"

SQL
0

java hide mysql login credentials

/resources/dbconfig.propreties/
Posted by: Guest on October-28-2020
0

java hide mysql login credentials

private ResourceBundle reader = null;
 try{ 
     reader = ResourceBundle.getBundle("dbconfig.properties");
     Connection conn=DriverManager.getConnection(reader.getString("db.url"),reader.getString("db.username"),reader.getString("db.password"));
 }catch(Exception e){
}
Posted by: Guest on October-28-2020
0

java hide mysql login credentials

#DB Properties
 db.driver="driverclassname"
 db.url=jdbc:mysql://localhost:3306/YOURDBNAME
 db.username=USERNAME
 db.password=PASSWORD
Posted by: Guest on October-28-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language