读取配置文件 方式一
来源:互联网 发布:软件操作说明书模版 编辑:程序博客网 时间:2024/05/01 22:09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package properties;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
/**
*@version 2015年4月26日 下午1:18:34
*@author sky
*读取配置文件 方式一:(不推荐)
*/
public class Properties02 {
public static void main(String[] args) throws FileNotFoundException, IOException {
//读取配置文件(前提是配置文件已经存在)
Properties prop =
new
Properties();
prop.load(
new
FileInputStream(
"bin/db.properties"
));
String driStr=prop.getProperty(
"driver"
);
System.out.println(driStr);
}
}
0 0
- 读取配置文件 方式一
- 读取配置文件[方式一]之纯C语言实现
- 读取配置文件方式
- Spring配置文件读取方式
- 配置文件读取(一)
- 配置文件读取properties(一)
- Hibernate不同配置文件读取方式
- 关于配置文件的读取方式.
- Java读取配置文件的方式
- java读取配置文件的方式
- java读取配置文件的方式
- Spring读取配置文件的方式
- Struts2的配置文件读取(一)
- java 读取配置文件(一)
- python读取配置文件(一)
- Spring读取配置文件的三种方式
- JDBC连接池(dbcp读取配置文件方式)
- 读取Spring配置文件几种方式
- ARM汇编-LDR指令学习
- STL-适配器-Stack
- poj3274
- Python标准库:内置函数staticmethod(function)
- “生动”讲解——矩阵的空间变换
- 读取配置文件 方式一
- caffe中安装python
- Android中Uri和ContentProvider以及ContentResolver之间的联系
- 9、Java反射(案例)
- poj3349
- 自测题IV——Have Fun with Numbers (20)
- overload override hide
- 数据结构_折半查找
- 脚本拷贝编程