Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created October 11, 2011 21:15
Show Gist options
  • Save tehbeard/1279472 to your computer and use it in GitHub Desktop.
Save tehbeard/1279472 to your computer and use it in GitHub Desktop.
///YML FILE EXTRACT
ach:
database:
username: "beardstat"
host: "localhost"
type: mysql
password: *******
database: "stats"
///JAVA extract
BeardAch.config.getString("ach.database.host")
String conStr = String.format("jdbc:mysql://%s/%s",
BeardAch.config.getString("ach.database.host"),
BeardAch.config.getString("ach.database.database"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment