81,092
社区成员
发帖
与我相关
我的任务
分享
String propfilename = "helloworld.properties";
Properties properties = new Properties();
InputStream is = getClass().getClassLoader().getResourceAsStream(
propfilename);
properties.load(is);
is.close();
helloworld = properties.getProperty("helloworld");
InitialContext initCtx = new InitialContext();
DataSource ds = (DataSource) initCtx.lookup(strJNDIName);