I am sick with grinding my teeth in sleep
My dear wife told me that I grinded my teeth last night before I got up this morning.
What a illness!
Anybody tell me how to cure this disease? thanks anyway
- Love | Time: 1:02 pm (UTC+8) No Comments »
My dear wife told me that I grinded my teeth last night before I got up this morning.
What a illness!
Anybody tell me how to cure this disease? thanks anyway
My dear wife told me that I grinded my teeth last night before I got up this morning.
What a illness!
Anybody tell me how to cure this disease.
Properties properties = null;
String CONFIGURETIONFILE = "com/travelsky/titi/common/GlobalParameters.properties";
if (properties == null) {
try {
properties = new Properties();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream inputStream = null;
if (cl != null) {
inputStream = cl.getResourceAsStream(CONFIGURETIONFILE);
}
if (inputStream != null) {
properties.load(inputStream);
inputStream.close();
//set database parameters
DbUtils.databaseType = Integer.parseInt(properties.getProperty("database.databaseType"));
DbUtils.driverClassName = properties.getProperty("database.driverClassName");
DbUtils.url = properties.getProperty("database.url");
DbUtils.username = properties.getProperty("database.username");
DbUtils.password = properties.getProperty("database.password");
//set uploadFileDir
GlobalParameters.uploadFileDir=properties.getProperty("uploadFileDir");
//set userId and password
GlobalParameters.userId=properties.getProperty("userid");
GlobalParameters.password=properties.getProperty("password");
System.out.println("Getting global parameters successfully!");
}
} catch (Exception e) {
e.printStackTrace();
System.out.println("ERRORS:error on getting global parameters!");
}
I re-lost my old blog http://tomshen.wordpress.com/ for the government’s re-banning to wordpress or the earthquake in Taiwan or something.
:(
So, please remember this address http://tomshen.blogsome.com/ as my permernent blog