1、归档系统报表里主管医生要取电子病历首页上主管医生
parent
ab6c25918a
commit
415c4b8963
@ -0,0 +1,29 @@
|
|||||||
|
package com.ann.demo.utils;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
public class PropertiesUtils {
|
||||||
|
private static String fileName = "\\application.properties";
|
||||||
|
private static Properties props;
|
||||||
|
|
||||||
|
synchronized static private void loadProps(){
|
||||||
|
if (props==null) {
|
||||||
|
props = new Properties();
|
||||||
|
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||||
|
try {
|
||||||
|
props.load(loader.getResourceAsStream(fileName));
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getProperty(String key){
|
||||||
|
if(null == props) {
|
||||||
|
loadProps();
|
||||||
|
}
|
||||||
|
return props.getProperty(key);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
#spring.datasource.driver-class-name: oracle.jdbc.driver.OracleDriver
|
||||||
|
#spring.datasource.url: jdbc:oracle:thin:@120.27.212.36:1521:ORCL
|
||||||
|
#spring.datasource.username: docus
|
||||||
|
#spring.datasource.password: docus702
|
||||||
|
|
||||||
|
oracleUrl = 120.27.212.36:1521:ORCL
|
||||||
|
oracleUserName = docus
|
||||||
|
oraclePassWord = docus702
|
Loading…
Reference in New Issue