下载此文档

jsp属性文件的读取Jsppropertyfileread.doc


文档分类:IT计算机 | 页数:约6页 举报非法文档有奖
1/6
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/6 下载此文档
文档列表 文档介绍
jsp_属性文件的读取(Jsp_ property file read)
Jsp_ property file read. Txt, when you think you have nothing, you have at least t block, because the static type method or the code block belongs to the class itself
In an object, and this itself represents the current object, while the static method or block call does not initialize the object.
The problem is: if I don't want a class to have objects, then r 11 set the default constructor for this type to private, and certainly not to write anything else
Common construction method. And I'm a tool class, all static methods and variables. I want to get them in static blocks or static methods
Take the properties file, and this method won't work.
Then what shall I do? In fact, this class is not so use, he just need to get a Class object on it, and that's not easy
-taking all classes of parent class Object, using Object, class, isn't it convenient and safe for you to write the class yourself? Ha ha, down
Examples are given to facilitate communication.
Example one
Import . Properties:
Import java. io. InputStream;
Import java. io. lOException;
/ * * * read the example of the Properties file
* File: TestProperties. java
User: leizhimin
Date:, 2008-2-15, 18:38:40
/
Public, final, class, TestProperties (
Private static String paraml:
Private static String param2;
Static (
Properties prop = new, Properties ();
InputStr

jsp属性文件的读取Jsppropertyfileread 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数6
  • 收藏数0 收藏
  • 顶次数0
  • 上传人小健
  • 文件大小83 KB
  • 时间2022-05-20