ResourceBundle rb=ResourceBundle.getBundle("com.a.b");//com/a/b.properties文件,按.分隔路径
rb.getString("ds.name");
rb.getString("ds.name");
解决方案 »
- Tomcat 并发10k
- opencms静态导出的问题
- EJB3在SessionBean外部调用实体中外键的Get方法时抛出LazyInitializationException异常
- struts2 能和ajax一块儿用吗?
- 如何给struts2的action表单传参
- spring和struts整合 使用MappingDispatchAction spring的xml文件如何配置
- commons-logging,log4j关于线程的问题(高手进啊)
- 大家帮忙看看为什么会有这个错误16:08:54,937 ERROR LazyInitializationException: could not initialize proxy - the owning Session wa
- 请帮忙翻译一下这句话(关于spring的 )
- 用jdom将xml+xsl翻译成html,出现的问题(在线=答案)
- weblogic集群布完了,访问不了?
- taglib问题
{
InputStream file = null;
if (fileName == null)
{
file = getClass().getResourceAsStream("/db.properties");
}
else
{
try
{
file = new FileInputStream(fileName);
}
catch (FileNotFoundException e)
{
logger.info("文件没有找到,可能原因是:" + e.getMessage());
throw new UUMSException("400001",e);
}
}
}这个是从WEB-INF目录下找配置文件,要改动就按你自己的要求改吧